You have a rank, you get to give orders, it's a hierarchy generally.
But the difference between an experienced, senior NCO and a junior officer is well understood, and built into the structures.
Specific examples: why is there an officer's mess? Is it classist? Or is it because familiarity breeds contempt, and when you need to order someone to do something if no one respects you; everyone dies?
On the other side of it, who eats last, the enlisted or the officers? If you get that wrong you get mutiny.