It turned out

It turned out that it is good to be friends for health.

Communication with friends and memories of the time spent with them or close people cause pleasant emotions.