This is "internet is a series of pipes" logic, but it's technically true - it's used for TCP routing. Why is it bubbled up the layers? Why does facebook store it? Well, it's not as if you can do anything with it. It's not even a great identifier, due to mobile networks, carrier-grade NAT, dynamic IPs... But it certainly shouldn't be treated as private, any more than your home address.
Huh?!?