They can, but scope and features increase surface area: their limited functionality intrinsically limits that.
Widgets are just apps with limited scope and surface area. There’s no reason they can’t apply this to the weather app which already has (or should have) a limited scope.