Probably to keep the aisle clear for paramedics to access the patient or evacuate them.
Also I suppose that, since they initially don't know what they're dealing with they don't want people leaving the plane in case it turns out to be something contagious or otherwise dangerous.