The warmer air over land rises up, cooling in the process. But then water in it condenses and gives up heat, that supports the upward flow. So it's kind of runaway process. Eventually when there's too much water condensed, then it overcomes the upward flow and rains down.
How it happens, and whether it happens at all, whether the rain won't evaporate in midair etc. depends on variety of conditions.