What causes a child to run a fever occasionally, that lasts only one day?

Many things. Could be a transient viral infection, the child may have been exercising to the point of overheating, they may have trauma with bleeding into tissues. Fever is generally either normal response to physical activity or to inflammation, and is most frequently either benign or actually helpful.