Because they init the replicaset with the same ports as the ones exposed.
Using ip’s in the 127.0.0.0/8 is great, its a whole /8 network!! And you can use default ports over and over again.