In this position 5.Nxe5? would be an unsound trap. While the white queen still cannot be taken (5...Bxd1??) without succumbing to a checkmate in two moves, 5...Nxe5 would win a knight (for the pawn). Instead, with 5.h3, White "puts the question" to the bishop which must either retreat on the c8–h3 diagonal, capture the knight, be captured, or as in this game, move to an insecure square.
I know that the best play is to move H3 but my opponent may not do what I want them to do which is to move Bh5. Because I'm in fear that they may take my knight or move back to another square.
But if you play 5. Nxe5 your opponent may not do what you want them to do which is to play 5...Bxd1. You should be in fear that they may take your knight instead.