You could, but then you’ll have replaced a universal and standardized abstraction with a hard commitment to one very specific approach. That doesn’t come cheap.
One thing that I like, which this approach allows for, is live configuration. For things like databases and such which allow for the regular rolling of credentials.
It's not simple by itself, but it simplifies other things.