Giving jobs to people you have worked with before is neither of those things.
I wonder if the conflation of the two is part of the American transactional corporatization of friendship. People only make friends through work and they think of people they worked with as friends if they provide them with professional value. So tapping someone you worked with before up for a recommendation for a job because you suspect they liked working with you feels indistinguishable from asking them to recommend you for a job as a friend.
But no: that’s asking someone for a professional courtesy, not abusing a friendship.
When you go out to eat, do you randomly select a restaurant because going to the place you like would be unfair to all the places you haven't tried yet?