Did Mughals have any options not to accommodate them in the absence of any skills giving them power over sea routes. I remember reading that Bahadur Shah was the first mughal emperor to see sea
As I mentioned in OP, Mughals had contracts with Portuguese for safe travel (especially pilgrims to Saudia) and when Portuguese faced defeat from British, Mughals had to rely on British.