Simply not true. Bitcoin Core has had spam filters since 2010.
There's potentially lots of whacky/malicious transactions that miners aren't picking for their block templates.