This is designed to piss of the Indians..after all, that ocean is named for them
Submarines are the Pak navy’s weapon of choice. They will never be able to catch up with India in numbers and Karachi is very proximate for India to blockade/attack. Subs are the only means to break a blockade or counterattack. The Pakis got subs before India and installed anti ship missiles on them long before the IN.