Why is it a "flea" market?

Aside from the fact that some of the items sold may be infested, I suppose…

Aside from that, there’s no reason … because that is indeed thought to be the origin of the term, per the Oxford Dictionary.

:o Jeez. I thought I was joking.