Precisely these laws exist so that the amount of money that is extracted from businesses (which includes young freelancers) is maximised and then given to pensioners.
It’s a sign of an economic system that is nearing collapse. A wealthy country has no need for these shenanigans.
But Germany is not very children friendly. There are various factors at play. Cost of raising a child, work environment and the attitude towards potential mothers or fathers being a career death sentence in many cases, the culture of not being close with extended family, worsening education system, people being allergic against children and noise that children make, children-unfriendly infrastructure and city design, politicians actively working against children's health by weakening consumer protection and lowering food standards (see Klöckner and the Lebensmittelampel for example) and probably more.