What's peer's public key for?

I’m wondering that what’s peer’s public key for?
When should we use it? and is that private key of a node exist and it paired with the public key?
Can anyone know this issue?
Thank for reading!