When I click on "Share" on a question or answer, a small block pops up and I receive a URL that I can copy and paste to other people. The popup also says:
share a link to this answer (includes your user id)
and the URL has the following structure:
https://stackoverflow.com/a/:answerId/:userId
https://stackoverflow.com/q/:questionId/:userId
I can remove the user ID and the links still work.
My question is why should I leave the user ID in the link? Do users receive something (reputation) in exchange? I don't really see the reason for attaching my user ID to the answers or questions I'd like to link to, so I'm wondering why it's even there.