When individual stars form from molecular clouds of gas and dust they produce intense radiation and very strong particle winds.
Both the radiation and the stellar winds blow the dust outward from the star creating a cavity or, bubble.
In the case of the Black Widow Nebula, astronomers suspect that a large cloud of gas and dust condensed to create multiple clusters of massive star formation.
The combined winds from these groups of large stars probably blew out bubbles into the direction of least resistance, forming a double bubble.
Source
Both the radiation and the stellar winds blow the dust outward from the star creating a cavity or, bubble.
In the case of the Black Widow Nebula, astronomers suspect that a large cloud of gas and dust condensed to create multiple clusters of massive star formation.
The combined winds from these groups of large stars probably blew out bubbles into the direction of least resistance, forming a double bubble.
Source