iMessages show up as imessage notifications on your Mac because you are using the same account with both your Mac and your iPhone. Therefore, information such as photos and messages are available across Apple’s different devices. Similarly, your messages will also show up on an iPad as long as it is set up with the same account.