If you don't spend time together outside work (work events don't count) then you're right.
However, I've had a number of coworkers translate to friends, especially after we stopped working together.
Work friends are like any other relationship: both sides have to work to make and keep things going.