Certainly a person can discuss his /her problems with friends. However sometimes this may not seem enough. Moreover the opinion of a friend may be biased and filtered through personal experience.
A psychologist, within the framework of the privacy as per the ethical code , has the appropriate scientific training so that he/she provides the opportunity to the person to focus to oneself and see more clearly, understanding oneself and proceed towards personal growth