Dextrose: Why is it in food and medicine?

Dextrose: Why is it in food and medicine?