because Script-Languages have a faster development cycle, they are less efficient though.
So as the company grows it makes sense to scale by gradually replacing the software by compiled languages.
But I have to point out that a lot of big companies still use ruby,python or php and just replace their weakpoints. Sentry for example runs on python but for the analysis of sourcemaps they use rust.