> Looking at modern day web development we are seeing the opposite, where the program is many times bigger than it's output
You're seriously underestimating the size of output in a web browser. Consider that the CSS, JS and HTML describe the position of every pixel and its motion on the screen.