(Psychological / emotional perspective)
Before we can be fully open to other people, we normally have to let down our barriers, and being trapped in a castle may highlight our difficulty in freeing ourselves from old attitudes.
Trying to enter a castle signifies that we recognize that we ourselves create difficulties which have to be overcome.