Usually by direct exposure to it. We get the culture of our parents by living day to day with them, the culture of our locality by interacting with the other people who live here.
When we travel, we can learn about other cultures by observing the ways the people there do things.