Yes in this one case vs the specific hand you may have made the most money possible. However we never play vs the players specific hand, we play vs his range of hands. So if he has a value hand that isn't good enough to raise, we lost a street of value, If he has a draw that airballed on the river, we just lost a street of value. And while it might not happen, the possibility remains that he can hero call two streets and fold or call the river with his AT, so we could have theoretically made even more in this spot, as unlikely as that might be. But the main value we get here is from second best hands (unlikely) and from draws. all of his JT QJ AK type hands that will call at least to the turn/river to chase and see if they hit.
It's almost always best in these low level games to just play very exploitably and very simply. So we flopped a hand here, i'm betting close to pot on all streets and trying to get the chips in by the river. weather or not that is the BEST play for this specific situation vs AT is irrelevant, we have to play vs his range which includes tons of draws and overcards, 8x. It's a pretty clear bet on all streets imo.