For the internet to function, websites need your information. If you want to log into a website using Facebook login, Facebook needs to know what website you are logging into.
When you watch a Youtube video on someone else's website, in order for that data to be sent to you they need to know what your IP address is and they need to know what website you are viewing the video on.
This is how the internet works. You cannot access something from someone else's servers without them knowing what your ip address is.
Are we invading people's privacy when we log ip addresses when someone visits a website hosted on our servers now?