Iphone 7 earphones in washer, still works?

So I'm weirded out because I accidently washed my iPhone 7 earphones because they were in my sweatshirt's pocket. I tried them thinking (of course) they wouldn't work… And they did, perfectly… Not sure how or why but.

Has this happened to anyone else? Can I still use them? They won't blow up randomly in my ears right?

Added (1). They have dried completely once i found them when I forgot I left them in my sweat shirt, by the way.

Get the iPhone 8 Plus or X

As long as your earphones are completely dry, they should be fine. Most of the mechanics of earphones deals with wires, and not much electrical, so they wouldn't have taken much damage from water I would think.
Just make sure they are dry. I'd leave them to sit for a day or so. I would recommend drying them thoroughly before you use them again.

This might help:
http://www.shure.com/americas/support/find-an-answer/earphones-in-the-washing-machine

It's not the same headphones, but it gives good tips

If they work fine, I wouldn't worry about it. However, if you want to be sure, soak them in some rice for a while.