Looks like they mate with females, which still lay eggs, but the won't hatch. So less bad bugs mate and produce offspring. Needs large numbers of good bugs though.
They're only 'good' because they're sterile, and capable of sabotaging mosquito reproduction. If they weren't sterile and "only produce good male mosquitos again", the population would not decrease, they would just be releasing regular male mosquitos.