The study, however, suggests that although feeling lonely is partially due to genetics, environment plays a bigger role.