Because 3dgs allows you to program your own graphics algorithms: shaders. Some shaders need matrices that are calculated per-model or per-frame, so it must be done in c-script.