Clouds are high flying fogs. I am not sure how clouds get formed. But the clouds know how to do it, and that is the important thing. Clouds just keep circling the earth around and around. There is not much else to do.
Water vapour gets together in a cloud.
When it is big enough to becalled a drop, it does. Humidity is the experience of looking for air and finding water. Rain is often known as soft water, oppositely known as hail. Rain is saved up in cloud banks. In some rocks you can find the fossil footprints of fishes.