If you watch slice of life anime people live in stable families, are nice to each other, and mostly have their lives in order. They live in nice neighborhoods with lots of opportunities to socialize and because most people are nice to be around that means everyone can make friends.