[![enter image description here](https://i.stack.imgur.com/Ng7b8.gif)](https://i.stack.imgur.com/Ng7b8.gif)

How come the ambient occlusion I see in the 3D viewport is different from the render?

Or is it that they must be baked to view them in the render?