I'm not sure I would have gone for it there, but here is the argument for going for it.
The only possible explanation I can understand is the idea that the team has momentum after the TD. But the same would be true if they scored a TD after an onside kick. That's why I think it was a horrible call. I was surprised they even bothered with an onside kick after that. The game was over.