Why is it ‘half a’ but ‘a quarter’?

Apparently both don’t need the word ‘of’.