Just the way servers work. When you connect to a server (or relay) the incoming connection aka your ip is known.
Server operators can choose to hash ips or not look at them at all, but then you put all your trust in the operators since you can’t actually verify this