They use two factors in bone mass densitometry - velocity of sound through the bone, and attentuation of the sound wave by the bone.
More dense bone = faster speed of sound and more attenuation
Healthy bone denser than osteoporotic bone.
Therefore blah blah blah