HGV Licence gone

I don’t understand the decisions they come to, I know a couple of drivers that inject insulin and keep their licence, others have it taken away from them, why is this?