An EX Raid pass is rewarded for participation in raids throughout your local area in the past week. You can increase your chances of getting an EX Raid invite by increasing the Gym badge level and by participating in a high number of raids (observed period: 7 days before invitation wave).