why was saruman standing on top of the tower in Rotk ? why didnt he stay inside ? Was he waiting for gandalf or trying not to get wet ?

At the end of TTT he was inside it !!!