Because you have a valid H1 on which there is I-94. You are NOT out of status now.
Talk to the CBP officer and give you a new I-94 based your new H1. There is no difference between you go to Mexico/US border and you go to China and return to US.
This should be a easy fix!