Too many doctors and other medical professionals feel that way -- that bit of the 'blame game' that implies that YOU did this to yourself. There is no acceptable excuse from medical professionals who promote that idea than from anyone else -- less so from them, in fact. Type notwithstanding, you certainly did NOT intentionally do yourself harm, and in fact most likely are NOT at all to blame (Not speaking to you, @LHromika, but to the general population of "YOUs" that hear this regularly from he medical community.)
As I said above and elsewhere on the forum, I actively pursued a "healthy lifestyle," based on the best medical and nutritional advice I could find at the time, for at least a dozen years before my diagnosis. I was at a healthy weight. I was exercising actively daily. I ate a diet consisting primarily of "healthy" foods. At my diagnosis, my doctor was incredulous and kept repeating "You have diabetes??" like that would help.
Could be, it's a problem in the "environment" or in the general diet, or in the food additives many of us consume much of the time. OR, genetics, or it could be any of a thousand other things.
OR it could be that the definition of a "healthy lifestyle" that we've been told to follow is in fact totally wrong -- perhaps there are better ways that EVERYONE should eat/exercise/sleep/live. Be it LCHF, LCHP, or any other "better" approach, I can't say, but something other than what we've been told to do. If this last is in fact the case, any doctor or other medical professional that tells someone "Well, you have Type 2 diabetes" or even the reverse, as you were told, but in what seemed like a defensive way... the patient should turn to that doctor and ask, "Why did YOU and your medical experts do this to me!!?"