One reason Germany has been able to afford more entitlements for its citizens like socialized healthcare is due to the fact that it virtually had no defense expenditures for decades. We can say the same for most of Western Europe. The US has subsidized the defense of the EU for decades.
As for occupation, I wonder what Germany did in the 20th century to merit it?