Everything else aside:
Are we stil actually worrying about the "logic" of a dungeon adventure that is designed in an explicitly gamist way? Come on. You knew what you signed up for when you picked up the D&D PHB: dungeons AND dragons (or hydras, as the case may be).
There are likely very reasonable complaints to be made about any WotC adventure. The designers behind them are a) human, b) have preferences, and c) working under time constraints. Nothing is going to be perfect. But your complaint is "the adventure does not delve deeply enough into the ecology of this series of rooms full of monsters"? In 2023. I'm sorry, but no.