I think this kind of thing is pretty common in poker. Having pair Aces doesn’t always guarantee a win if the board doesn’t help. In your case, A9 won because your opponent hit a flush. There will be more freeroll tournaments, so feel free to try again you might get luckier next time.