This has been going on for years and years now. Ever since the government's war on water and other generally harmless liquids and gels was launched at US airports, I've been seeing this take place. It's part of the TSA's taught and instituted ways.
Diarrhea/feces-filled diapers on babies seem to get a pass from the TSA in a way that baby food doesn't.