The Mishna teaches us the laws of carrying from one domain to another, the example of the mishna for this is a poor person reaching into someones house to ask for food or a wealthy person reaching out of his house to give food to a poor person.
The Meiri asks, why doesn’t the Mishna give a classic example of 2 people, why are we seemingly discussing the laws of charity in the middle of the laws of Shabbos?
He explains that the Mishna is teaching us that even if something is a Mitzvah, we cannot do an Aveirah to get that Mitzvah done.
Endangering other people is an Averia, we should not endanger others by violating quarantine or the like in order to fulfill the Mitzvos of Purim.
Wishing you all a healthy and fulfilling Purim!