I wonder if XP helps through pair programming. Managers get to code and also get to mentor juniors at the same time.
The most impactful mentors I've had personally were senior developer / tech lead types. My managers were great, but it's just easier to have the "is this a stupid idea" conversation with somebody who doesn't sign your paycheck
Whether or not it happens seems to depend on the team. Personally, I like teaching people new stuff so it would often fall to me, on the teams I worked in. ;)
Of course, that founder was one of the originators of XP practice, and ran our company on those principles--pairing, fast feedback loops, and mentorship for all (he's since handed over the company to his #2 who he mentored for a decade, and who is continuing those practices).