There's always the feature request page if something is lacking.
From what I’ve briefly found looking at html5, I’d probably do it the same as with my solution. Is there a built in way to restrict to only numbers? Maybe, but it’s simpler to just do myself. It gives the ability to restrict the input to anything I’d desire.
Personally the “why” doesn’t interest me a lot. It could be an intentional design choice, or maybe oversight.