Hey, she murdered a witch to get them.
There was a thing on X of who really was the “bad witch”.
Glenda has Dorthy take the slippers to gain power. Uses that power to kill the bad witch and expose the Wizard and he flees. Never told Dorthy that she could have used the slippers to return to Kansas. All so Glenda could take over the Kingdom of Oz.