Looking at the tables, you might get the idea that COVID hospitalization causes a lot of diabetes. The way they arrive at that is to count the diabetes diagnoses made after COVID admission.
However to me it seems far more likely that a diabetic without a diagnosis (which is common) gets hospitalized with COVID, then gets their diabetes diagnosis in the ensuing medical surveillance. Having an undiagnosed liver or heart issue is also common.