As the document states
The "Commit pending changes" action is another point where a workflow will execute all its batch operations.
So when you add "Commit Pending Change" to your workflow, the workflow is going to execute all it's batches up to that point. Regardless if they are Nintex batches, SharePoint batches, or some other batch. So the behavior you are seeing is expected.