Adds an electron for a negative charge. Dust particles that pick up a static charge like that stick to things, coming out of suspension in the air. Some have a plate of opposite charge inside the ionizer itself which is more effective and keeps it from making a dirty smear over the nearest wall.
Ionizers try to keep the voltage low enough that they do not create ozone (O3 instead of O2), which is irritating to the lungs and eyes so it's bad even though it oxidizes contaminants in the air which is a useful cleaning action.