As others pointed out, in my opinion a clearly opportunistic move to make a political career. Born as a Muslim, converted to Catholicism, and then back to be buried as a Muslim ...
However: in Argentina it seems it was never an issue whether he was Catholic or Muslim. In Europe or in the US...