A "coincidence" is a situation when two seperate things happen that come together creating an unexpected result. As bill explained, running into a childhood friend in some random place. They did not plan to meet you there, you did not plan to meet them there, but without knowing it you made the same plans at the same time and met eachother.
It can be used in other situations as well, such as:
"My favorite movie is Zoolander."
"Really? What a coincidence, I just watched that this morning!"
As in the former situation, the second party had no idea that the movie was the first party's favorite. So the act of watching the movie was in no way related to the first party liking it, and thus it's a coincidence.