The D is created when sunlight hits their fur. It is in the oil on their fur, and gets into their system when they lick/groom themselves.
Can’t say I ever considered canine vitamin D synthesis before. Learn something new every day around here.