The two genres sit at opposite ends of what a game asks of you. RPG stands for role-playing game, and the focus is on living as another character.
In an RPG you build someone over time. You choose a race or class, gain experience, improve statistics, make dialogue decisions and follow a story that runs for dozens of hours. Progress is measured in who your character has become, and the challenge is usually strategic rather than physical.
A fighting game is immediate and physical. You control a fighter already at full strength and win by executing combinations of button inputs to attack an opponent in close-quarters combat. Progress is measured in your own execution and knowledge of matchups, not in a number that goes up.
RPGs are about growth and narrative over long sessions. Fighting games are about mastery of a small, deep set of mechanics in short bursts.