hahah I love these questions!!! :)
He has ants in his pants = he can't sit still, he is too agitated about something.
Imagine if your pants/underwear were full of ants biting you, you would keep fidgeting (moving) about! It would be very difficult to stay still. In the same way, if you are excited or nervous about something, you tend to move about a lot! :)