Not powered off they don't.
An HDD can wear out with use but 25 years is easy for storage in a drawer or box in the attic. Floppy storage is far trickier.
Tape needs carefully stored.
Pressed DVDs* and especially pressed CDs are OK, but "written" ones can fade in daylight.
[* Assuming no manufacturing defects]