Why are one of the symptoms of diabetes excessive hunger? What causes that?

Does it have something to do with trying to make up what the body is lacking when you lose glucose in urine output?