Hey i'm no poker god or anything so dont take it as gospel but heres my advice, for a start, in the above hand that you posted you said nothing about what stage the tournament was in (although it can be guessed from someone calling 50 preflop) or what everyone elses chip stacks were as you were acting quite early on in the hand, this sites amazing for the advice that you can get but you need to inform people of EVERYTHING about the hand, Player1 was playing quite loose, P3 had previously got it all in w/ 79s and been paid off etc its also good for you to be noticing things like this as poker is hugely about observation and acting on previous behaviour.
Second, my tactic whenever i played in freerolls was to always be ultra tight in the first 2 or 3 levels, meaning i'd chuck AK suited or unsuited, to an all-in, without a thought, if i put it in the terms of someone who's pushing with a pocket pair i'd wanna be called by someone with AK, AQ, AJ, A10, cuz at the end of the day they still have to improve their hand when you dont. AK, AQ, or any ace for that fact gets hugely overplayed in freerolls and micro tournys (which will be your next progression if your just starting out) dont turn into a player that overplays it, i personally wanna see a flop with big slick because it is a good hand but i definetly dont wanna call an all in with it.
In summary when you ask what did i do wrong here? the answer, i think, is getting all you chips in before the flop with a hand that has to improve, obv in hindsight your hand didnt need to improve, and in freerolls it usually is ahead, but if your gonna play freerolls with the view to improving and moving on to real money
play AK can be chucked pre-flop to an all-in bet.
To everyone else, please dont flame me for my reply, this is my view and i've said that he can take it or leave it, if there is anything wrong with it then please correct me as we're all learning here, thanks