Kidneys regulate glucose in the urine. When they are not working properly, urine may contain large amounts of glucose, which can be attractive to sugar ants.