It could have been profitable earlier, but it would have been much smaller and faced stiff competition. That isn't what Google needed from it.
Is every company that is not immediately producing a profitable product “price dumping” - including every startup YC funds?
YouTube could have been profitable by charging for their services. Like Vimeo. They could not have been profitable with ads. Google couldn't afford for YouTube to be small, they needed a near monopoly on internet video to extend their ad empire.