It may sound strange, but dogs bark because they are encountering new experiences. Some less friendly dogs will bark as soon as they meet strangers because there are too many new things about that person for them: