Sony's ram journey.
Sony wanted a more gaming centric console with less emphasis on additional media features or multiple operating systems. To get that, they'd need fast GDDR5 ram.
At the time it was expensive and didn't come in large sizes, so they went with the highest amount they could, which was 4GB of GDDR5.
Originally the PS4's OS reserve only took up 512mb of ram, which still left 3.5GB of fast ram left for gaming. Later the OS reserve jumped to 1GB (leaving 3GB for games).
During this time, they worked with partners to try and speed up the development and manufacture of larger GDDR5 ram kits, and eventually last minute managed to secure 8GB GDDR5 kits. So the PS4 was then upgraded to 8GB of GDDR5 ram instead of the previous 4GB. They also upped the OS reserve from 1GB to 2GB, still leaving 6GB GDDR5 for games