Why Do People Who Have Diabetes Have To Remove Their Shoes And Socks At Doctor Appointments?

I recently had a doctors appointment and their was a sign in the exam room saying that if you are a diabetic to please remove your socks and shoes. Why do diabetics have to remove their shoes and socks? I don’t know much about diabetes and I am curious.