If the tomatoes came from night soil/human waste - then it was incorrectly processed. Correct processing of human waste would prevent the tomato seeds from sprouting.
Of course the seeds could easily have come from birds overflying the site - or other less processed waste.