Why do China give travelers anal tests for COVID-19?

According to news reports, travelers to some Chinese cities have been forced to take anal swab tests for COVID-19, a measure that has sparked calls from other countries.

This week, officials in Japan complained that some Japanese citizens arriving in China were subjected to the tests, which ’cause great psychological pain’. according to the BBC.

Source