Batteries Magnetic?

Back story. I have a little kid and found what I believe was 3 magnets. They stuck to each other and to the side of our chair. I’m losing my mind over what they are and where they came from. They almost looked like top hats with an indent where the top part is. They were super small and VERY magnetic. I’m freaking myself out that they may have been button batteries. But would button batteries be magnetic / pull to one another?