Steroids can cause insulin resistance. This means that even though your body is producing insulin, the cells are not using the insulin correctly so the sugar starts to accumulate in the blood causing high blood sugar or hyperglycemia.

source