You got it gifted.
apparently tf2 is put into people's libraries for free for a week for some reasonprobably not permanent. probably. hopefully.
/facepalmFree weekand
...an unprecedented WEEK-LONG FREE WEEKEND[/U] of Team Fortress 2, starting right now!