Event Listener in JSX

This is the link to the topic I’m talking about Event Listener in JSX.

My question is, the function named makeDoggy takes an argument e, but apparently you don’t need that in the exercise and somehow the tag passed in as the argument. How can that happen? Can someone help me explain about this? Thanks!