Security work draws on a handful of languages. Python is the everyday tool for scripting and automation, C and C++ matter for understanding memory and low-level behaviour, JavaScript for web-related analysis, and Bash for gluing things together on Linux. SQL is useful almost everywhere.
Linux is popular in this field for practical reasons: it is transparent, the source is available, and the tooling is free. That is a legitimate preference about environment, not a shortcut to anything.
Worth stating plainly: programming knowledge is neutral, and using it against systems you do not own or lack written permission to test is a crime in most jurisdictions. The people who build careers in this area do so through recognised certifications, bug bounty programmes with published scope, and labs set up specifically for practice.