The act of adapting behavior to the norms of a culture or society is called socialization. Socialization can also mean going out and meeting people or hanging out with friends.
The word socialization can mean "the process of making social." The socialization of a dog or a cat with humans and with other dogs or cats can establish positive behaviors for pets. It's not a bad idea for people, either. If you constantly chat with your co-workers, your manager might inform you that you are there to work, not for socialization. Maybe he's just jealous because no one talks to him.