Virus scanners are based on blacklists and some iffy heuristics. A clean result is not a guarantee of safety. Nearly any custom-built malware will slip by.
Windows is a huge pain for compiling software with dependencies, but I don't think MozJPEG has any. There are detailed build instructions for Windows included.
How can we know the library wasn't altered to give remote code execution to a specially crafted image?
Some strangers with candy have no sinister intentions, but kids should still avoid them, because of the irreparable harm that those with sinister intentions will cause, all kids should avoid candy from strangers.
(In some of the results "Police declined to tell", and some describe the same incident, but that's just the first page with the first search term that came to my mind).