You made a leap of faith from “imprisoned spirits” to their location being in “purgatory”.
In the first place purgatory is just a name the Catholics call it.
To me it is a state of sleep, Jesus went and awakened those who were asleep and they went with him.