Also, keep in mind the PS4 and PS5 are running an OS built on BSD Unix, so the OS overhead is much less than on a PC or Xbox, which means performance on the PlayStation systems tends to outstrip an equivalent PC or the same generation's Xbox system.Erm... your chart edit is very incorrect; the Playstation 4 has the equivalent of a Radeon HD 7850, not a Radeon RX 580.
As the HD 7850 is roughly only a third of the overall performance of the RX 580, you can see the optimisation hurdles that need overcoming. And that's not even considering there's only a total of 8GB RAM available - shared between OS, game, and GPU buffer - and an Intel i3 tier CPU for processing.
Meanwhile, the PS5 has the equivalent of a 5700 XT, not a 6700 XT.