Yes it came with the magnet from the factory as did the replacement Kubota filter. It’s just sitting there in the baseplate. I took the old magnet off to keep around.
I prefer that it catches the particles before the filter. If it wasn’t there and the particles were caught in the filter media, some of the them could be pushed out of the filter in the event of a bypass condition. This completely eliminates that risk.