They went swimming in the rain.
Rain is not a body of water on can swim in.
Walking is how you go places but if you go swimming, you get wet.
If i think about swimming I have to pee, so I would rather walk.