Is that intentional so a third party can be ei…

Is that intentional so a third party can be either your ally or only the enemy of your enemy?

I think there are situations (maybe sneak attack) that call for a create hostile to your target rather than an ally of you.