Some environmental factors like, chemicals, viruses, poor nutrition may trigger immune system cells that target beta cells in the pancreas (these cells are responsible for production of insulin in human body).
An autoimmune reaction happens with a message going into the immune system to capture beta cells, dead or alive.