Soo how would they know if a person has been to China if you have a Australian passport?

Or if a ABC produce a Australian passport and say they haven’t been to China lol.