Why do mosses thrive only in moist habitat?

Mosses (bryophytes) are non-vascular land plants of moist habitat that grow densely together and often form green carpets or mats on damp soils. It is because in the absence of roots, thallus absorbs water and minerals directly from ground or atmosphere. Hence, they can thrive only on moist places.