The player object would represent the current person playing the game, i.e. you. The warrior represents the object on the screen. The player tells the warrior to take actions, so it makes sense that they're different objects.
If there were multiple warriors then your code would no longer make sense, as the control logic would have to be changing the player_instance.warrior object.