
Have you ever wondered if your grandmother was always that short? Chances are, she wasn’t. Maybe she was a tall, statuesque female like you are now, but over the years, she gradually lost height. Research has found that women lose roughly one-half inch every 10 years over age 40.
Osteoporosis and bone loss
Aging, heavier weight and use of corticosteroids can contribute to bone loss, which can lead to height loss. When the discs in the vertebrae dehydrate and compress, the vertebrae collapse, due to loss of bone density (osteoporosis), which can also lead to height loss.
Regular work out can help

Researchers have found that young people who work out strenuously at least three days a week can offset bone loss –and height loss –in later life. https://insights.ovid.com/crossref?an=00042192-201808000-00007
The report also found that exercise can help to improve bone strength and balance in postmenopausal women and so prevent spine fracture and other injuries. So, when you exercise, you are not only doing your muscles a favor, you are increasing bone mass and maintaining your height as well.