Some RPGs do a decent job of creating interesting battle mechanics and customization systems for the party members, but then botch the enemy troop and/or boss battle design.
Tedious HP sponge boss battles have already been mentioned. I'm a big fan of boss battles with multiple targets, parts, forms/status shifts, summoned lackies, etc., to create dynamic battles. But a lot of RPGs don't avail themselves of such ideas and just create the same HP sponge battles or heal-a-thons.
Another related big problem area is when enemies lack variety and pose the same level of threat to the player.
Enemies in a given area should have a tangible variety of traits, capabilities, and threat levels, so that a "different combination of enemies will create very different encounters."
(from page 8 of VX Ace
Make Your Own Game Tutorial VI: Creating Encounters Part 1)
When a player sees what they're up against, they should have some sort of reason to prioritize defeating or disabling some enemy targets over other, in other words, to think up a plan or strategy for how to best handle this particular encounter.
But I've played more than enough RPGs where all or most of the enemies in an area tend to have similar HP/defenses and to deal roughly the damage. There's little to no strategy to deciding which enemy to take down first. The player just arbitrarily picks one enemy to prioritize, but they may as well have picked another one. Regardless of what enemies are present in the battle the player rehearses the same actions that work in every battle, and each battle plays out the same way.
If there's a bunch of enemies the strategy is pretty much the same "focus on one enemy or use multiple target skills to reduce the numbers as quickly as possible so we take less hits." It's not something specific to the types of enemies themselves, or any basic synergy the enemy troop might have, like "defeat or disable this particular enemy first because its spells buff the physical defenses of all its allies, most of whom already resist magical attacks" or "defeat or disable these two enemies on the same turn, because both can revive their defeated allies and I also don't want them to revive each other."