Hong Kong is viewed as a matter of national security to China. The only way it threatens the "national security" of China is by opening the door for people to question the goodness and wisdom of the Communist Party.
Where does the influence of China end and Western influence begin? Despite the political handover, there was no sudden change on this influence boundary in 1997. That is still being fought over year by year, and it's a highly legitimate national security issue.