At 60, I'm fortunate to have not lost height so far. However, I am not as flexible as I was in my youth, and I do expect that a little bit of height loss could occur as I age further. There are lots of factors for both losing height and flexibility. Staying active, stretching, eating sensibly... three things you have some control over that will hopefully reduce the effects. Genetics is (for the time being at least) beyond our control. Not a bad thing to be aware of, but in and of itself, it's only one one factor. Changing equipment always remains a remedy, but considering it your first resort could set you on a path of compromise and is likely to shorten your riding days.
__________________
In search of what to search for.