This can be explained by the fact that Friedman taught Hayek's famous paper "The Use of Knowledge in Society" (1945) in his graduate seminars.
Which of Hayek's works did Friedman once teach?
The Use of Knowledge in Society