Magnesium deficiency is common in hospitalized patients. Up to 12% of all people admitted to hospital, and as high as 60–65% of people in an intensive care unit (ICU), have hypomagnesemia.[12]
“About 57% of the US population does not meet the US RDA for dietary magnesium intake.[13] Kidneys are very efficient at maintaining body levels; however, if the diet is deficient, or certain medications such as diuretics or proton pump inhibitors are used,[14] or in chronic alcoholism,[15] levels may drop”.
From wikipedia
Interesting that it mentions ppi’s as so many people are on them. When I worked at a surgery I couldn’t keep enough of them as they were so heavily prescribed.