Toilet near the entrance is simply practical.
How often does it tinker or get a bit louder with the window open and someone is standing at the door.
In the house, it is rarely so quiet that you can hear it from far away.
Door to nothing smells.
In times of ventilation systems, the smell is gone quickly anyway.
Otherwise, it is something natural. No matter whether poor or rich, young or old, it does not smell like roses for anyone.