More than internal pressure
The rating of a flange states which internal pressure it withstands at which temperature. In a pipe, however, more arrives: weight, thermal expansion and occasional loads produce forces and moments at every point of the line – including where a flange sits.
A flanged joint is the weakest link at that point. Not because it breaks, but because it leaks long before the pipe next to it reaches its limit.