There is a reason we ask people to wash their hands.
You're immune system is probably not going to improve on exposure to worm eggs or larvae for example.
To take it to an absurd extreme, if you come across an unflushed public toilet you're not going to drink from it with the hope of boosting your immune system... are you?