That's because damage is not attack. I think you're just confusing the two terms.