What does "on earth" mean?
The phrase "on earth" is used with question words to express and emphasize the speaker's surprised, shock, anger, disgust, confusion etc. Ex: Why on earth are you still here? Ex: How on earth did you find me? Ex: What on earth is that? Ex: When on earth did you have time to study?