What are you talking about?
If you didn't have to deal with environmental hazards in your dnd games, you didn't have your dm use all of their tools
Let me give you a great example:
https://www.dndbeyond.com/spells/greaseIn previous versions of the game this spell would set on fire. They specifically removed that in 5E on purpose. They did that for a reason. Also I'm not against hazards. I'm just against ridiculous amounts of hazards. This game breaks immersion with the amount of nonsense going on.
I am totally with you on this. As a DM I do provide hazards for my party
when and where they make sense. Random barrel of oil in the middle of the library? Uh, why? You need to give the player a hint as to why it's there or it doesn't make sense. So put that random barrel of oil in a store room. Makes perfect sense for it to be there,