Why were flying boats phased out?
The biggest single reason for the decline of flying boats was the proliferation of long runways during World War II. The infrastructure advantage of flying boats – the ability to operate heavy aircraft without long runways – was no longer relevant. Large airfields were a result of the long-range heavy bomber campaigns in Europe and Asia.

Century of Flight has an interesting article that goes a bit more in depth.