It can also foster social bonds, scientists say.