Or perhaps the castle was built by someone that came after He-Ro who inherited the powers? If they wanted, they can set up the story so that more than one person is granted the powers over the years.
In an earlier post I wrote a rather lengthy thing on how I thought He-Ro and KG could be brought together into one continuity. Anyone have any comments on my suggestion with regard to that?