The linked article has the headline:
Tim Cook wants to sell iPhones so badly he prayed to an elephant-headed god
And this from the article itself:
Cook visited the high-profile Siddhivinayak temple in Mumbai before dawn on Wednesday to offer prayers to the Hindu elephant-headed god, Ganesha. One of the most worshipped Hindu deities, Ganesha is widely revered as the remover of obstacles. Hindus pray to Ganesha before starting anything new as he is said to bring an auspicious start.
My 2 cents, this is Tim Cook paying respects. Tim visiting a shrine or temple does not tell you anything about his motivations. That said, I did find this fascinating.