I have always been taught that it was named for a large French market that sold shabby flea infested goods;
Flea market comes from the French marché aux puces, a name originally given to a market in Paris which specialized in shabby second-hand goods of the kind that might contain fleas