Could someone explain to me the update method?

Can someone explain to me why you need an update method that udpates the game 60 times / second, and why generally it’s a bad idea to run the updates in the method where you’re rendering the screen?

If anyone can link me to an article about this that’d be awesome.