Imagine how uncomfortable it would be if you needed to pee but couldnt?
BUT
It could still just be a habit that has formed.
He tries to prepare himself and empty his bladder before you ride or bring him on to the yard where he wouldnt want to wee (concrete/ hard ground etc)