As a pastor you get invited into the most poignant moments of people's lives. Whether it's a wedding or a funeral or a hospital visit you get invited into the center of the event whether or not you know the people.
Sometimes a character is really based on research that you do. Other times it's just based on your imagination or perhaps your conversation with the director. Or sometimes all of the above. It depends on the movie and character.