That's not a great place for a compressor, direct exposure to the weather means they are unable to exchange heat as efficiently. Why'd they put it up there?
Lack of space is the primary reason for putting it on a roof. It will get direct sunlight and there will random temperature differences so efficiency will never really be perfect. The condenser coils are also covered and it's not open like a ground unit would be.
They could put it in the shade, and that would be nice. I am curious where they should put it in this case...
I don’t think I’ve ever seen one of those “American style” ground units in Europe. They all look like the one in the picture and are predominantly wall or roof mounted.