Your IP address is like your public ID on the internet. Any time you do anything on the internet, your IP address lets servers know where to send back information you’ve requested. Many sites log these addresses, effectively spying on you, usually to deliver you more personalized ads to get you to spend more money. For some people, this is a significant issue, and there are ways to hide your IP address.
Source: How-To Geek