Great question!
The reason is that "в шестом часу" is not exact time but a period of time somewhere between 5 and 6. "в часу" is the locative case. It is used to talk about a period of time that lasts for one hour. For example, "в шестом часу" means the period that started at 5:00 and ends at 6:00.
Compare these two examples:
Авто́бус при́был в Москву́ в шесть часо́в утра́.
The bus arrived to Moscow at six o'clock in the morning.
Авто́бус при́был в Москву́ в шесто́м часу́ утра́.
The bus arrived to Moscow somewhere between five and six in the morning.