You would be surprised under which conditions many of the basic food items you are eating daily are produced...
This is not that bad, actually.
The tomatoes are prepared with salt, as it seems (you can still see some salt crystals between them) and will dry relatively fast in the sun and hot wind of southern Italy.
Salt and water removal will quickly make the tomatoes a hostile environment for any kind of microbiological life.
As you can see, it's hot, sunny and windy there, food dries out fast. The radiant heat and the wind keeps flies away. In some places, people do this with meat and fish, too.