Do magnets make jewelry tarnish?

I had a curious thing happen and I’m just wondering… Do magnets
make the metal in costume jewelry tarnish? I have a wonderful box of
tiaras and rhinestones for my granddaughters to play with. One of
the girls put a magnet in the box, and the next time we opened it,
everything had tarnished. Any comments?