Take the first XBOX as a good example, it had 32MB of RAM shared between the CPU and GPU (the sharing is where it had some performance gains). Even the most basic PC has 64MB RAM + 16MB VRAM, with enthusiast already at the 512MB level.
The Series X has 16GB of shared memory, where-as your typical 2020 gaming PC might have had 16GB + 8GB. An enthusiast PC at the time would have been something like 32GB + 24GB or 64GB + 24GB.
That means more room for level data, entities, physics, AI (RAM), and models, textures, buffers (VRAM). If you want to use all available VRAM you need to fill it with bigger textures (which are usually the bulk of the data). That means you need higher def textures on-disk, which means it isn't using the same assets as consoles (though consoles are probably using downscaled versions of the same assets).
In addition, PC versions tend to have greater draw distances, higher resolution, higher frame rates, object density, reflections, better ray-tracing where applicable, better shadows and lighting and volumetric effects, and so on.
All of these contribute substantially to graphics quality on PC.