How and why animals can live alongside humans