If you take some pub sub like Kafka, Nats or RabbitMQ and bolt some code into it, it really is trivial. You scale by using Kubernetes for services and by sharding and replicating the DBs. It's really easy these days.
Maybe it was more complicated in 20 years ago.
However there's orders of magnitude more effort that goes into:
* Usability
* Performance
* Stability
* Security
* Localisation/internationalisation and accounting for cultural differences
* Monetisation - ads, payment platform integration, fighting fraud
* Fighting abuse, both automated and not
* ... and thousands of little things that will come up when building something big.
Think of this another way... Twitter would not employ literally thousands of employees if there was nothing for them to do. It is not a charity. I don't buy that building anything that can handle hundred of millions of users is simple.
I’ll put it another way. Which job would you rather have? Build a scalable Twitter clone? Or operate the business and make money?
How do you make sure it’s not an epic cesspool? It’s not an engineering problem.