I've been there as well
Many years ago, when the company I was working at was considering putting in a data center, I was the one leading the charge. I hired an individual whom I later discovered was a vastly better manager than I would ever be and recommended to my boss that my hire and I switch jobs. He said since I make more than the guy I hired, he would ask him if he minded working for someone making more than him. He didn't and the switch was made. We kept that arrangement until I left the company for a more technically challenging role (consulting) and we both agreed the switch was one of the best decisions I ever made...