I'm not sure why this is such a common take. Many functions in a typical business, overstaffed or lean, could be greatly pared back without an immediate impact. UX, UR, product, legal, HR, design, recruiting, infosec, analytics, marketing, sales, facilities, etc. The question is will it have a negative impact 6 or 12 or 24 months down the road.
I have no personal knowledge on whether Twitter was overstaffed but the "we got rid of X, Y, Z and the business hasn't collapsed yet so must not be needed!" is a bad take.