Drainage holes allow excess water to escape from the pots, preventing waterlogging and the accumulation of stagnant water. This helps to maintain the health of plant roots by avoiding the onset of root rot.