He played the hand aggressively, but not poorly. He had to assume he had the lead after the flop. His best move would have been to call your aggressive pot bet instead of go all in, but given he had top pair with top kicker, it’s not a bad move. He was unlucky to be going against aces.