Because the Templars....
True, Philippe IV was a great king. Still, not the greatest. He had many success but several fails.
Among his fails and errors were:
- Losing the grasp over Flandres
- Pope affair (sending Guillaume to arest the pope.... who lucly died)
- Templars, Jews and Lombards affairs (and to extension the financial issues)
- Nesle Tower affair... he practically blow up his dynasty by making it public.
And... I forget the last one: marring his daughter Isabelle to England !

Well, he could not knew what will lead to, but still.
Concerning Louis XI yes, he destroyed Burgundy but what he give birth to was even worse (Habsburg Burgundy)