Why has Poland generally been better at rebuilding their cities old town than Germany?

Compare Wroclaw to Cologne for example. There are obviously exceptions for Germany for example Dresden.