The GM designs the dungeon. The players explore and loot the dungeon. The GM adjudicates their efforts in accordance with the rules of the game.
This is not the same as the GM deciding.
There is no difference between that and a DM designing a story based game and players deciding which story elements they engage with.