I find it very hard to believe you've read anything on this subject. Let's do the very first step of reading about it, consulting wikipedia.
https://en.wikipedia.org/wiki/Night_soil
"Night soil is a historically used euphemism for human excreta collected from cesspools, privies, pail closets, pit latrines, privy middens, septic tanks, etc. This material was removed from the immediate area, usually at night, by workers employed in this trade. Sometimes it could be transported out of towns and sold on as a fertilizer.
Another definition is "untreated excreta transported without water (e.g. via containers or buckets)".[1] The term "night soil" is largely an outdated term, used in historical contexts. The modern term is "fecal sludge"; fecal sludge management is an ongoing challenge, particularly in developing countries.[2]
Night soil was produced as a result of a sanitation system in areas without sewer systems or septic tanks. In this system of waste management, the human feces are collected without dilution with water."
Note: UNTREATED.
One might also ask, when was human waste first subject to treatment?
https://en.wikipedia.org/wiki/Sewage_treatment#History
"It was not until the late 19th century that it became possible to treat the sewage by biologically decomposing the organic components through the use of microorganisms and removing the pollutants."