People get taller over time because it's a trait that is very strongly selected for and pretty strongly genetic (you can gain or lose some inches due to environmental factors, but the baseline is genetic) - that's just evolution. People got more sedentary over time because of the advance of technology.