Wiktionary
why on earth
interj. (context idiomatic English) used to add emphasis to "why" when beginning a question.