“Scaling” as in “making sure the infrastructure can handle much higher load”, or as in “making sure the product remains genuinely useful to people, so that the user numbers go up and not down”? For both, it didn’t happen by itself, but it’s far from rocket science. A sane team of 15-20 people can do it.