I imagine it’s because JavaScript has the lowest barrier of entry. Think tutorials, setup time, and where people generally start their journey into building websites and web apps.
Same thing for backend developers learning the front end the first time. Ecosystem and community matter for adoption