For archival spinning rust is still massively more cost effective than SSDs while offering better performance than tape, especially for random access.
I'm sure eventually SSDs will be cheap enough that HDD will go the way of the floppy but we're not there yet.