In Buddhism, taking “refuge” is finding freedom from what will never make you happy. To the outside world, it seems like constraints. But to the student, it’s a form of freedom. My guess is that there is a form of this in every spiritual tradition.