It's a bit of both. You need the app, and the best apps are ones that solve problems you know well. They can become businesses if the problem is one you share with a wide enough number of people. I guess the thing to keep in mind, is if you don't think about profit from the outset, even if you don't initially seek profit, you'll never be able to make profits.