What do you mean by "somehow"?
You can click on your name from the top right of your Steam browser and see everything that happened to your account.
Comment has been collapsed.
Have a look at: https://store.steampowered.com/account
It should tell you when you got the game, and whether you bought it, it was complimentary (free from Valve) or a gift.
Comment has been collapsed.
You may see this "Portal - Complimentary (Opt In)" on your account if you got it free before 24 May 2010, like me.
Comment has been collapsed.
17,676 Comments - Last post 2 hours ago by Ichigowest
2,813 Comments - Last post 2 hours ago by Maksymilian666
159 Comments - Last post 3 hours ago by Foxhack
58 Comments - Last post 3 hours ago by astarr
10 Comments - Last post 4 hours ago by aez76
590 Comments - Last post 7 hours ago by RobbyRatpoison
36 Comments - Last post 8 hours ago by FateOfOne
31 Comments - Last post 16 minutes ago by bastirei
1,140 Comments - Last post 26 minutes ago by Cactus123
155 Comments - Last post 1 hour ago by Fluffster
998 Comments - Last post 1 hour ago by RePlayBe
2,246 Comments - Last post 1 hour ago by Jztr
23 Comments - Last post 1 hour ago by Noodles91
153 Comments - Last post 1 hour ago by Gxgear
I just checked today and I somehow got Portal free and not from any giveaways or from preordering Portal 2.
Did anyone else get it for free?
Comment has been collapsed.