The reason friends and therapists are best kept distinct is to avoid codependency.
Codependency most often takes the form of two people taking on roles of caretaker and care-receiver; where not only is the recipient of care dependent the specific caregiver, but the caregiver is dependent on the feeling of usefulness and validation they get from taking care of the other. This is very toxic as it means problems rarely actually get resolved