Isn’t a Warrant Officer, like a sergeant, non-commissioned? And normally not considered and “officer”?
No, they go through a commission school just like other officers. The difference is, they have a specialty that is valued in the military.