Many words or idioms have more than one meaning. The interpretation of the "correct" meaning is simply a matter of context.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
soheil1The context is: What on earth is he doing with his knight (from play winning chess)used to express great surprise that something could happen or exist