Why do we need Visualforce & Apex?

You can find the code here that's used in the episodes.