Sincere question: have you ever worked at a larger company?
When I was at Etsy, people always asked why we had "so many employees" for what seemed to them like a simple e-commerce website. These people were always from smaller companies.
I don't know a ton about the technology behind WhatsApp, but if I had to guess:
1. WhatsApp does not have an advertising platform.
2. WhatsApp does not provide you with analytics for anything.
3. WhatsApp doesn't need a team (or at least as big of one) dedicated to anything related to big data or machine learning. Think of Twitter's "Trends" and "Who to Follow" features.
4. Searching Twitter is a much more difficult problem to solve than searching through just your own personal chats.
5. I may be wrong about this, but doesn't WhatsApp not store anything/much on its servers, and instead relies on your phone? I'd imagine that reduces a lot of overhead.
6. I'd be willing to bet that Twitter has (and needs) way more admin features for dealing with things like harassment, illegal content being posted, etc.
I could probably go on, but this should give you an idea. All of these things require people to make happen. Designers, developers (front-end, back-end, mobile, dev ops, and more), PMs, you name it. Also, given that Twitter is just a bigger site/app in general, it takes more work to handle things like internationalization, for example. It's no sweat getting "Send," "Chats," and "Settings" translated, but think about translating your entire advertising and analytics platforms.
It's a lot of work.