Yes, there exist cloud computing companies that took a long time to be profitable. IDK if Oracle ever was.
Cloud computing was still profitable the entire time. Amazon alone could cover all of GCP expenses.