Developing an HTML5 canvas app. Why use a model

Developing an HTML5 canvas app. Why use a model