In software it's development costs. Outside silicon valley, in the non-techie world, there are many things that work the same way. Eg real estate - building a building is an upfront investment of piles of money that the building doesn't earn back for years. Or eg opening a McDonald's.
The main difference in tech startups is that it's not just entrepreneurship, it's innovation too, so it's unknown whether the product will earn back the money. But sometimes McDonald's falls, builfings fail, etc. The odds there are better though.