When we simulate matchups, we simulate an attacker attacking a defender all at once. I don't understand the question, unless the suggestion is that we are conflating attacking and defending as the same, which is of course not the case.
Attacks are used by defending pokemon too, if that's your question?