Speaking specifically to temporary party members in RPGs that are real characters, I think of making them playable as an Effort vs. Reward tradeoff on the Developer's side.
- The biggest benefit to investing the effort is that the character will be far more relatable (and usually more likable) to the player than if they were an NPC. There is a certain connection that players have to party members they are directly responsible for, which usually cannot be recreated with a pure NPC, even a very likable one.
- There's also a slight boost to player immersion in their recognition that many people in the world - not just their party members - are capable of fighting and adventuring.
- Finally, you have the gameplay mechanics benefit of offering the player the chance to play a very different way for a temporary amount of time, if the Temp Character has very unique mechanics (perhaps ones that would either get boring, or become imbalanced, if they were available for the rest of the game).
On the negative side, creating Temp Members can take a lot of effort (usually the full amount of effort it requires to create a character that's available all game long). Art assets, character-specific GUI, animations, gear (if each party member has access to different gear), new skills (unless they're clones of existing members' skills), hitboxes, bugtesting... it adds up quickly. The game might benefit more from you putting your effort into content elsewhere (or simply creating more fully-playable-all-game-long characters). In basic RPG Maker games, very little needs to be done to create an additional playable character. But as you start adding more plugins, or developing in other engines (especially ones built for Action-style games), it becomes a lot more work to add additional playable characters.
Don't forget that it's perfectly reasonable to have a character temporarily join your party, leave, and temporarily join again later! This kind of "ally on the outside" can be a really cool dynamic in RPGs, and having one character join twice is only half the work of having two characters join once!
Mercenarys hire-able for a certain amount of days/mins/etc
Mercenaries tend to be a very different thing from what I think of as "temp characters", and they're generally best used for games that specifically exploit them as a game-wide mechanic, like
Europa Universalis. In general, I don't think that genres like RPGs should be trying to add mercenaries into their gameplay - it's more likely to completely throw off the balance than it is to improve the experience.
Escorts (Take a basically useless or comparably weak guy and take him to a location)
I sort of like when games do this. Again, comes down to the effort vs. reward tradeoff.
That one powerful dude that slays monsters better than you and has endgame gear but he dies due to a rabbit: Self explanatory.
I feel that if you're going to include a mega-overpowered character (more than twice as powerful as your current characters), do so for a
very short stretch of gameplay. Yes, it can helps get the point across that the character is REALLY powerful and badass, but it also robs your other characters of the opportunity to do anything useful. I'd rather have a temp member that's equally powerful to my party members (or slightly stronger), and unique.