why are some squirrels friendly?
By “friendly” I assume you mean they will come right up to you and maybe take food out of your hand. Squirrels that behave this way have just gotten accustomed to seeing people as a source of food and not been accustomed to people chasing or harassing them.