But Google didn't go public until 2004, when they were highly profitable.
Every startup goes through a phase where they aren't profitable... For most of of them that ends when they go bankrupt.