For years, like from the beginning of computers, various sizes were based on 1024 (powers of 2).
Then Disk Driver manufactures started reporting storage in 1000 (base 10) units because it made their disk drive look bigger than the competition. I think this started around the time disk drives started having gigabyte sized capacities and the difference between base 10 and powers of 2 reporting became a large number.
But the operating systems kept using powers of 2. And users started to complain that they purchased a drive with 500 gigabytes, and the computer said it only had 465 gigabytes, and they blamed the operating systems.
So the operating system vendors caved in and started reporting disk storage in base 10 units.
At least RAM vendors still report memory in powers of 2, so the 16 gigabytes of RAM you purchased is reported as 16 gigabytes of RAM by the operating system and it is a proper power of 2 or 17,179,869,184 bytes of RAM 🙂