Modern realism comes from three things working together: physically based rendering that simulates how light actually behaves, sophisticated animation and motion capture, and an enormous amount of art.
Underneath that is manpower and money. Studios employ hundreds of people — programmers, artists, animators, audio designers, QA testers — and the asset budget for a large title can run to tens of millions of dollars. Every surface you see is a texture someone painted, every shadow is a calculation running in real time, and every animation is either hand-keyed or captured from a performer.
It is worth remembering how much of it is illusion. Level design, lighting and camera framing do as much for perceived realism as the raw polygon count does.