2009 Hyundai Elantra - Why does car lose presets?

Every few weeks my car loses the saved radio stations I have on it. It’s like the battery got disconnected although it didn’t. It has done this randomly for years even with the previous battery. I bought the car brand new from the dealer. The battery is fairly new (less than 2 years) so not sure what else it might be. Any advice is appreciated.

It may be an intermittent battery connection, but you would also have occasional starting problems. Check the battery connections for corrosion. It might also be an intermittent power connection at the radio.