Using drugs to treat an infection could allow other co-existing conditions to flourish, a study in wild animals has shown.