Use of techniques, tactics and procedures (TTPs) for creating an environment like real-world threats and then training people to fight those is a part of red team training. Such trainings make people capable of handle dreadful situations and defend themselves. This is among the security measures taken to test fully proof the organization from any harm.
The defensive capabilities get polished during such training sessions. Mostly, the sessions are mock ones and people are made to react and behave as if they are real. Penetration testing is the basis of red teaming and it is conducted in proper manner to train the employees well.