Some middle management treat people terribly as they lack technical and leadership skills.
It's difficult to grow in skills and in salary as you work with very old technologies, and the standard 3-4% raise is given per year even if you're an exceptional performer.