There are two advantages of MVC:
Separation of concerns is achieved as we separate coding in the different form of model, view, and controller.
Automated UI testing can be possible because we have moved behind code into a simple one.