Why are ethical hackers taught how to hack?
If you are a vegetarian I will apologise in advance for this analogy, but every tool can be used as a weapon. The bread knife that you use to spread butter on your toast, can also be used to kill, maim, or even remove screws in the absence of a screwdriver. Much the same, tools intended for intrusion prevention can also be used to compromise, infiltrate and deface the same systems they were intended to protect.
“To defend, you need to understand the attack.”