No. That’s like saying OS should use AI to try and figure out what buttons are to make them clickable, rather that developers actually building an interface for users.
All operating systems and platforms have pretty fluent and in-depth APIs for exposing an “accessibility tree” for assistive technologies to use. It’s your responsibility as a developer to build interfaces for actual users, and there’s very little reason not to.