Everything costs something. All defences incur costs. For survival, an animals needs food, and needs to stay alive to reproduce. Energy and time spent on defence can be considerable, but justified if it makes reproduction more likely. There are these kinds of costs: