If you measure productivity by economic output / hours worked, allowing those who have no desire to work to be excluded sounds like a good way to maximize it.
I don't know whether it is, but with relatively low personal wealth for the average German, low income growth, and plenty of industry, it may be. If it is, I don't believe it has anything to do with keeping millions of people at home and over-taxing the rest to pay for them though.