Most likely it's because he's trying to establish his dominance. I once had two male cats at once and they tried to out piss each other to establish dominance.
Most likely it is a dominance issue, but I would not allow the dog to do this. Sooner or later the cat will seriously object and there could be quite a fight.
good luck!