For masking your public IP address from the relays you are connecting to, and any servers your Nostr client may be running, such as Primal's caching server.
Maybe they aren't logging your IP, but you can't know that. Moreover, there is no reason why the relay needs to know where you live and what ISP you use, which is trivial for them to find out if they can see your public IP.