Random encounters do not imply bad game. As always, there are pros and cons. Most of the games offer means to reduce them or avoid them. Even Phantasy Star II from 1989 has an item called HIDAPIPE that reduces the number of encounters.
The pros of random encouters:
1. Easy as fuck to program. Roll a dice every couple of steps, play a stupid jingle and then force random baddies onto player.
2. Don't need to program believable monster behaviour and roaming or flocking algorithms (this is not easy to do well!)
3. Don't need artists to draw and animate sprites for monsters that roam around the dungeon. (saves ROM space on a cartridge too)
4. Don't need to make sprites for dead monsters and use computer memory to store where the dead ones are located (save file is also smaller if you don't have to save which areas have been cleared)
5. Don't even need to place the monsters when designing the dungeons. Don't have to write algorithms to procedurally generate their positions either.
6. Saves CPU/memory resources on very ancient hardware.
7. Enables to pad out total playtime of a game with bullshit. (some players consider length of the game when buying it)
Pretty much all benefis of random encounters are from developers perspective, they require zero effort, no thought or creativity to implement, greatly reduce amount of work for artists, etc. It's the simplest, most idiotic way to add combat to your game. And makes sense only on the limited hardware of NES or GB.
From a players perspective it's very hard to come up with any real pros. It's like trying to find pros of shoving a cactus up your ass.
In before some JRPG fanboy comes out of woodwork and makes the "everything is subjective, I actually quite enjoy putting cactuses up my bumhole" argument.
There's this item in Phantasy Star II called LUBE, yes, it still hurts, but the frequency of penetration is somewhat reduced! So it's okay!
Yes, a single awful mechanic doesn't necessarily always kill a game, but every other aspect has to be truly exceptional to make up for it.
If a game wants me to waste extra 20-30hrs for nothing in pointless random battles with super slow animations, it better have some masterpiece level music playing and some amazing narrative and story to make it more palatable.
Which is very, very hard to pull of and rarely if ever happens, considering JRPGs rarely have only one shitty mechanic, there's always more!
You should really stop arguing now, all you are doing is making a show out of your total ignorance in the matter. This has been going for long enough. You should respect yourself more.
It's obvious that you can't make a single good argument as you've only played dumbed-down console RPGs and have no frame of reference of what a good game looks like.