‘Not guilty’ does not mean innocent. It means only that the prosecution has failed to prove the accused’s/defendant’s guilt to the requisite standard of proof.
Not guilty absolutely does mean (legally) innocent. You can argue the toss whether legally innocent should be understood as innocence in the wider sense of course, but the point stands.