Yep, hierarchy comes from religion (hierarkhia, "rule of a high preist"). Traditional capitalist hierarchical organization is just one of many potential hierarchies, so definitely it could be improved. But hierarchy is ingrained in culture, and culture is probably the third hardest thing in the universe to change, after genetics and cancelling your gym membership.