Formaldehyde in milk? (historic)

From Upton Sinclair’s The Jungle, the 1906 exposé of the meat-packing industry in Chicago, outcry over which led Congress to pass the Pure Food and Drug Act later that same year:

An unscrupulous shopkeeper watering down milk I can understand, but what’s up with the formaldehyde?

Probably a preservative.