There are a couple of sides to this. One answer is to look at power, not amps; the other is to see if this 40A rating is continuous or only for brief periods of time.
The amp has large capacitors which store energy so they can deliver large bursts of current for short periods of time. Some amps are better at this than others.
Considering power:
power = volts times current
watts = volts times amps
40A into 1 ohm requires 40 volts, that is 1600 watts (40 x 40)
Very few amps can deliver 1600 watts for very long. Some can do it for brief periods and that is really all that is required since these types of peaks in the music are usually very brief.
The law that cannot be violated is you cannot deliver more continous power to the speaker than you can draw from the outlet. Simply put, the amp cannot create energy, only transfer it to the speaker.
The maximum power from a 20 amp/ 120 Volt outlet is 2400 watts. The maximum theoretical effeciency of a class AB push-pull amp (all high power amps) is around 75% which leaves us with 1800 watts, but designing an amp that can handle the huge currents and the 600 watts of wasted heat AND sounds good is very, very difficult.
While it is true that 15A is the normal limit for an outlet in the USA, 20A is also very common in commercial settings and can be used in a residence with the proper wiring and outlets.