Tea And Coffee Cut Type 2 Diabetes Risk
futurepundit.com
futurepundit.com
Article presents magnesium as a possibility, pointers as to other sources of magnesium, no comment on whether those particular sources have been shown to reduce Type 2 Diabetes risk also but notes that magnesium itself has been shown to reduce the risk.
So, in conclusion, it seems very unlikely that the observed effect is merely because an increase in intake of either of the previous drinks will be concurrent with a decrease in intake of other drinks with a high sugar content (Which indeed would be an extremely obvious indicator of how something might assist in cutting the risk of Type 2 diabetes)
There is a correlation between tea and coffee and reduced prevalence of type 2 diabetes. This is much different from 'cutting' type 2 diabetes risk.
It is more likely that not drinking sugar water (i.e. coke, mountain dew) that cuts type 2 diabetes risk.
(As stated in the comments).
Tea and coffee are merely a means to quit drinking as much sugar water. You could likely replace tea and coffee with 'tap water' and 'bottled water', and get similarly good results.