Artillery platforms built into the walls of ancient castles served as perches from which Golurk could fire energy beams.
It is said that Golurk were ordered to protect people and Pokémon by the ancient people who made them.