Why were patios originally built in Mexico?

to store water in dry climates
as a way to scape from the hot Mexican climate
as a place to cook during midday heat

to provide outdoor living space

for socializing and entertaining
to enjoy the natural surroundings
to create a connection between indoor and outdoor areas