They didn't hack education until it was free. They raised taxes until it was a shared cost paid for by every tax payer. The same is true for the healthcare systems there. (And everything else that's government funded pretty much anywhere... With the exception of oil-rich countries, I suppose.)
Obviously the teachers in France and Germany aren't paid, and the buildings and furniture just felt down from the sky.