This is rarely actually true but it's a common falsehood told by people who have financial interest of keeping everyone on AWS.
And that includes engkneers that only know how to use AWS and are terrified at having to learn something else.