The need for a Compiler
Also the compiler will generate typescript code for the components you write. This code will actually run inside the browser.
The need for a Runtime
The compiler takes a component definition including the template and after type checking (see above) turns it into a ComponentDefinition. The runtime can execute the ComponentDefinition inside the browser.
The answer why a runtime is required is: