Well yes, but many other countries have similar math when it comes to software engineering salaries as opposed to other fields. In most places, going into software is a good thing to do moneywise.
I find it difficult to find reliable numbers (since I work in a different industry), but it seems median entry salary for IT graduate is 40k€, which is 25k€ nett anually. I also find the middle-upper class difficult for germany (since salary upper class doesnt mean you are asset upperclass aka rich).
Personally I would say 25k€ nett is middle class; but here everybody wants to belong to the middle class so it usually has a wide stretch.
Big companies are unionized so salarys do not get that big, but are considered higher then in non-unionized companies.