An annulment says that there was not a valid Catholic wedding due to circumstances.
Couples were married and children are not illegitimate.
It just wasn’t valid to begin with.
It was a legitimate (valid) marriage. It didn't work out. And that's truth.