HONG KONG—HSBC Holdings PLC’s decision to keep its headquarters in the U.K. rather than move to Hong Kong is prompting soul-searching in this former British colony about how it is seen on the world stage.

The decision comes as Hong Kong’s growing ties to the volatile mainland markets are sparking concern among investors, who are fearful of outsize interference from Chinese authorities.

Since...