Welcome to the Forum!
You may be doing nothing wrong. Diabetes can also be a genetic thing. Be aware that stress will drive your blood glucose level up.
Read through the first three threads in the Type 2 Section, when you get a chance, if you have not already done so. These threads will most-likely help you a lot. Self education is one of the keys to successful management of your diabetes, along with a healthy / sensible diet and exercise. Basically, diabetes requires a life-style change for the better. Good luck with your control and management.