You're forgetting a very important factor: the automatic transmission can only respond to the drivers actions. Unlike the driver it has no knowledge of future plans. It will happily shift up 2 seconds before I hit the brakes because it has no idea I'm planning to take a left turn in 20 meters.