I think there are a lot of factors.
My DND group spent a while talking about the mechanics of DND, character knowledge, and player knowledge. Specifically, let's say there's a big knight dude. The dm knows he makes four attacks at +9 for 1d10+7 each. What do the players know?
The dm can say he looks tough. A master of dueling. But what does that mean? Is the dm just being flavorful and this is a "level appropriate challenge"? Or is he trying to tell us he's like a 17th level fighter? Two DMs might use the same exact phrasing and mean different things.
This problem is kind of aggravated by dnd's rules. There's not a lot of unified, coherent systems underpinning it. NPCs don't use the same rules as PCs, and don't really have any rules at all. As a player you can't really reason about what you're facing.
Compare CofD, because I've been playing that lately. Most things are rated 0-5. If the gm says "he's a professional [whatever]" you can be pretty confident the guy has about six dice, and from there you can make an informed decision. Your defense is 3 so he'll probably hit, and with a big gun and your seven health that's risky but if you bump your defense first etc etc.
DND doesn't typically give you that information outright, and there aren't really mappings between common words and power levels. With bounded accuracy you could try to be like newbie is +3, decent is +6, pro is +9, etc, but there's nothing for number of attacks or damage dice.
So it's hard to communicate to your players what they're looking at.
Plus, a lot of people do a sort of oblivion style scaling. The king's guard in the first chapter is like +7 to hit so he's tough and scarier than the PCs, but in the second act (or just a game that starts higher) he might be +10. Not a fan of scaling to the PCs.
Even moving away from human foes, what are the appropriate stats for a cave troll? You can infer it's strong so that's probably a +5 or more, but there's no way to know it's number of attacks or damage dice. How am I supposed to gauge if I can win this fight without that? There's a huge difference between 1 attack and four.
Now, some players are definitely at fault. Not paying attention, not understanding the information they do have, wanting a popcorn game where they just win when the dm said that's not what they're doing, etc. But the game itself also doesn't give the players enough information to make informed decisions , so of course sometimes they're going to be like "yeah the dm is being dramatic let's fight this troll WHAT DO YOU MEAN HE HAS FOUR ATTACKS?"