I was taking some test shots of a pile of books on a table indoors at night in a room lit by 2 lamps, with Aperture mode and set to f5. Without a flash the camera set the shutter speed to 1 second, and with flash to 1/2 second. I then switched to manual and set f5 with flash and this time set the shutter to 1/250, which was the max it would go. The picture came out just as exposed as the 1/2 second w/flash picture.
Why would the camera not select a much faster shutter speed when using the flash in aperture mode? When the results of the manual test show that it clearly could?

