The fan theory.
Think about Glinda's journey from struggling to cast simple spells to suddenly displaying real magical power. The theory proposes that Glinda becomes magical because of the immense pain and suffering she experiences through losing Elphaba and Fiyero by the end of the sequel! While an early deleted scene shows her struggling with magic, her later bubble transport operating without needing a physical button stomp hints she has transformed. Under this interpretation, her magical potential unlocks directly from the emotional weight of her grief and character growth, fulfilling the Grimmerie's prophecy that someone with a pure, tested heart can wield its spells.
Sources
Video discussions
Glinda's transition into becoming magical might be fueled by the pain and suffering of losing Elphaba and Fiyero.