Is there any truth to this? Every time I see this claim, it is actually comparing the price tag for servers in the on-prem case with the price tag for compute on AWS/etc (which includes a whole lot of engineering and data center management costs). It's a pretty meaningless comparison.
My guess is that AWS has the economies of scale to outperform your average private data center on a total-cost-of-ownership basis.