There's always a build vs. buy decision and sometimes you should build, but this is why even huge companies use Salesforce over maintaining an internal CRM.
Building something in-house probably doesn't usually result in a better product up front (and definitely not for less up-front expenditure), but it can reduce some risks and be less constraining to future moves if you own the app.
I was going to reply this to a different guy, but in my experience the risks of the in-house app going out of maintenance due to dev attrition or whatever are far lower than most people think. Stuff that's business critical is almost always staffed appropriately, and stuff that people perceive as business critical but actually isn't is usually the [large group of small apps] that aren't well supported. The big problem is the rinky dink Excel macros, VBA/COM+ add-ins, and random isolate single developer crap that nobody knows about except the end users.
Github Enterprise is f(team size)
CircleCI is also f(usage), you can decide to have less capacity. (Although, in the case of CircleCI, more developers hopefully maps to more tests, so indirectly, it is f(team size))
Likewise, your CircleCI bill is going to be higher with more team members as you mention.
That's all very imprecise, it's not like there will be a direct linear relationship. But close enough compared to Mixpanel etc which scale with f(users) or f(transactions).
Also, with GH, I can always choose to take a project off GH and archive it. That wouldn't make sense if it were user-billed.
Services whose cost is f(team size): CircleCI, Trello, Github
Services whose cost is f(user base): MixPanel, Moz, Shopify
I mention this distinction because the f(team size) services generally offer solid value to any team, being useful and less expensive than paying someone to build the same thing in-house. OTOH the f(user base) products are a lot harder for consumer apps to justify than business apps. They do occasionally offer enterprisey premium features like platinum support, but the main pricing scheme is based on X whatever's per month, and a SaaS company charging lawyers $100/user/month is a lot more likely to afford it than a casual gaming website with a million users and a some ads.