Anabolic steroids cause insulin resistance, as does aging and genetics.
I know someone who adhered to a relatively healthy diet, didn’t exercise a ton but walked everywhere who developed type 2 diabetes (aged 40s). Had a HUGE familial history. Some people get unlucky.
This person now uses Metformin