Are you asking why startups need investors? Seriously?
Yeah, if a company is profitable from day one, there is no reason to take investors money. However that happens rarely. And while some people are happy to work without salary in the beginning if they get equity, for others with different risk preferences or life situation it is a big no-go, therefore also different shares of equity and different compensation...