The ongoing re-generation of the sense of self is reinforced by our tendency to proliferating thoughts. This tendency is explored through the Honeyball Sutta (Majjhima 18).
The hindrances arise naturally within our practice. Developing mindfulness while the hindrances are present both brings in wisdom and transforms the underlying conditions.