Steam wanting me to buy a game I already bought?

You could use family share, by going to your username up at the top right, clicking it and going to Account Details.

username>AccountDetails

From here you can click Family Share, and manage all the people who can use your account.

OR

You can ask from permission from your friend and they will have to go through some short steps to allow you to play their games on your computer.

Just because a game is installed on your computer doesn't mean that it is in your Steam Library, ready to play. So you should use family share to do this.

HINT If you use family share, you two can't play the game at the same time.