I've often wondered that myself, so I asked Google and found this:-
Why is the Roman numeral 4 different on clocks?
Both methods of writing Roman numerals have been in use since the 1500s, possibly longer. Clock makers choose whichever number they feel is more aesthetically appealing and they often go with IIII because it balances better with VIII on the other side and makes the clock look more symmetrical.