“Is it ever explained why Marty hangs out with Doc Brown? He’s just in Doc’s house to start the movie and it’s just implied that they’re good friends.”
— Brett Savage
Among the many comments at that post was one from Bob Gale {wiki}, one of the co-writers of the three Back to the Future movies, who helped shape the history of all the characters. His explanation got its own post today. Link
MARTY
Doc Brown's all right -- he's just a little hung up on time. A couple of years ago, he showed up at mu house and hired me to swwep out this garage of his. He pays me 50 bucks a week, gives me free beer...and gives me total access to his record collection -he's got this great old record collection.
http://www.imsdb.com/scripts/Back-to-the-Future.pdf
So they meet like that :)
Greetings from Spain, Jorge.
P.S: obviously you can check out what I said in the link.