Code and snippets to analyze data work well when you can send chunks of it to multiple servers (think analyzing the effect of weather patterns).
Since a lot of that stuff is running on Linux (similar to cloud computing) it makes sense that people that write function/scripts/utilities would already be comfortable in that environment and use it as their daily driver.