Lol this isn’t engineering wtf.
Solid state data storage like an SD card and magnetic storage like a hard drive are fundamentally different technology; this is like asking why a VHS Tape needs to be bigger than a Blu-Ray despite the latter having a larger capacity.
The reason they both exist is that they have different characteristics and use cases. An SD card is slow but physically compact, a HDD faster than an SD but far larger and probably cheaper. An SSD is faster than both, smaller than a HDD but bigger than an SD and more expensive than both.
Latest Answers