Because that html page needs a full browser to render and browsers have accumulated decades of bloat for everything from webgpu to drm. There's a reason we can't write new web browser from scratch, and why some people are excited for protocols like gemini that you can hack a user agent over a weekend.