https://www.sleepfoundation.org/how-sleep-works/what-happens-when-you-sleep
"When you sleep, your body undergoes a series of changes that enable the rest that is vital to your overall health. Sleep allows the brain and body to slow down and engage in processes of recovery, promoting better physical and mental performance the next day and over the long-term.
What happens when you don’t sleep is that these fundamental processes are short-circuited, affecting thinking, concentration, energy levels, and mood. As a result, getting the sleep you need — seven to nine hours for adults and even more for children and teens — is crucial.
What happens during sleep, including how distinct stages of sleep unfold, demonstrates the complexity of sleep and its importance for our well-being"
...
Sleep and the body’s internal clock, or circadian rhythm, play an important role in regulating the production of numerous hormones
including:
Melatonin, which helps promote sleep
Growth hormone, which supports bone and muscle development as well as metabolism
Cortisol, which is part of the body’s stress response system
Leptin and ghrelin, which help control appetite
Hormone levels fluctuate during different sleep stages, and quality of sleep may also affect daytime hormone production."
I guess that's how many years of very little sleep affected my bones.