I was around when the agile manifesto was drafted. It wasn't about eliminating hierarchy in organizations. That's something that started happening later, around and after 2010. The agile manifesto was singularly focused at helping people see how to deliver software without leaning on the old waterfall methodologies.