I wish people would stop saying things like this. Nothing against you, but no, pair programming is not the best way to learn. There are various learning styles and people fall in diverse ways to learn best. I hate visual and social learning. Just doesn't work for me. Youtube videos and pair programming is just the worst thing you can do for me if you want me to retain any information. While some say there is 8, others 4, others 6, (mainly some divide some items in 2 vs 1), people are different and learn in different ways. Heck, just the amount of teaching styles/methods should be a good hint that there is no size fits all when it comes to learning.
Source: Childhood education degree + years of researching the topic.
Lets assume that is true, it doesn't mean you need or should use pair programming to learn from your peers. Depending on your style of learning, pair programming may work, a visual presentation may work better, or just typed docs for other people.
Pair programming may have originated in the 70's (depending on source), but there are hundreds of years of research on learning, please don't make the mistake of taking something as gospel.
(and in case you would like to point to apprenticeships in the past, they look nothing like pair programming, as it was mostly a subordinate relationship between master and student)
Source: Childhood education degree + years of researching the topic.