This is a simplification. Type 2 diabetes
is heavily polygenic, but the genetic connection could be... you are genetically predisposed to like sweet food! In which case, the diet intervention
would work, most people just aren't willing to do it.
Many genetic predispositions are behavioral, it's not all pure metabolic effects.