The curse of popularity. Relatively more people using something, means higher absolute amounts of garbage being made with it. I wouldn't say modern javascript tooling gives you some obscenely high number of foot guns to target practice with, at least compared to the other web-capable options. (PHP, Python, Ruby, etc)
Yeah, JS does less with it’s stdlib, which I think means a lot of people end up using mostly decent packages from npm instead of writing extra garbage themselves.