It is easier to function at night in the desert since the temperature drops. This way, animals can eat at night which wastes less energy on body temp regulation. They sleep during the day when the temperature is high and hard for the body to handle without wasting too much energy.