The US actually does reasonably well in certain sectors -- many non-flagship state schools provide a decent undergraduate education at approximately the same cost as German universities.
The in-state tuition at Missouri State University is $7,306 (yearly!), which is actually cheaper than the typical German education. Portland State is $9,030. I choose those because Missouri and Oregon subsidize less than other states, so tuition is closer to true spend, and I'm too lazy to calculate true spend.
Germany's excellent mid-range public transit and relatively dense population makes a big difference in terms of total cost (including room and board), since many more Germans can live at home during university. But those things are more attributable to infrastructure and especially geography than cost disease.
(The case of elite private universities is pathological. Call it whatever you want, they're just charging what they know they're worth. But they're also extremely atypical -- the US has A LOT of universities, and they have different sets of problems. Central Western Flyover State University does not suffer from the same problems as the Ivy League)