Singapore is a former colony of GB, with longstanding British ties. Royals are required to carry out certain duties whether we like them or not. They can’t pick or choose.
And to be fair, we don’t hear of any problems from Muslims in Singapore.