Too little exercise, as well as bed rest, weakens the bones.