Why was Elon Musk at the Thai cave rescue?

Why was Elon Musk at the Thai cave rescue?
A mini-sub delivered by the entrepreneur was said to be "not practical" by the rescue effort's chief.