How does magma cause geyser eruptions?

Magma does not directly cause geyser eruptions. Geysers are primarily caused by the interaction between water and heat from magma deep below the Earth's surface.

Geysers form when underground reservoirs of water are heated by magma or hot rocks close to the Earth's mantle. This heat causes the water to boil and turn into steam, creating pressure within the underground reservoir. When this pressure builds up and exceeds the weight of the overlying rocks and water, the geyser erupts, sending a column of hot water and steam into the air.

While magma itself does not directly cause geyser eruptions, its heat is an essential factor in providing the energy needed to heat the water and create the pressure that results in a geyser eruption.