When talking to a friend, it's usually more relaxed and casual. You can joke around and use slang, which makes the conversation feel easy and fun. But when you're talking to a stranger, you tend to be more formal and polite. You might feel a bit nervous or cautious because you don't know them well, so you try to make a good impression.
友達と話すときは、通常、よりリラックスしてカジュアルです。冗談を言ったり、スラングを使ったりすることができ、会話が楽しく感じられます。しかし、知らない人と話すときは、よりフォーマルで丁寧になりがちです。相手のことをあまり知らないので、少し緊張したり用心したりするかもしれません。そのため、良い印象を与えようとします。