The fact that bitcoin has fees does not stop/prevent spam, spam as in undesirable data, fees prevent Denial Of Service attacks, if a bad actor wants to flood the chain, fees will rise and eventually stop that attack, but if you just send some crap randomly just because you think Bitcoin is a nice DB for jpegs fees wont do shit, you need other methods, and yes they are never fully effective.