I'm not sure exactly if this question is about this specific visit or the general issue (mostly covered in the linked/other Q). But arm sales are never too far off the agenda between Europeans and India. Like German subs in this case, it seems. Macron also met with Modi possibly in relation to the Rafale deal and looks like will meet again in view of some nuclear energy projects. Etc.
But hidden in the body of some other DW article, this was clearly a [German] business promotion trip, more broadly
Scholz will be accompanied by a business delegation that includes CEOs of 12 major companies counting Siemens and SAP, as well as heads of Germany's small and medium-sized business associations.
I know less about the German practices in these regards, but such accompaniment is rather common for the French diplomatic visits.
Also (from the 1st source), Scholz appears interested in pushing along the India-EU trade agreement. Some of the headlines were mostly on this angle.
If it is to exchange information on some matter, couldn't they release also the purpose of visit?
They did, or at least the Indian side did, but this is couched in diplomatic platitudes
"Chancellor Scholz's visit will enable both sides to take stock and progress on the key outcomes of the 6th IGC, strengthen security and defense cooperation, work towards closer economic ties, enhance the opportunity for mobility of talent and give strategic guidance to ongoing collaboration in science and technology," a statement from India's Ministry of External Affairs said.
One thing that is correctly reflected in that blurb however is that such visits rarely have a single purpose/objective.
If you need more, strategically speaking the visit makes sense in trying to find alternative [meaning other than China] large business partners for Germany in Asia, and also hopefully chip away at Russia's influence in India:
Germany has been pushing to diversify its economic relations as it and other European countries try to avoid being dependent on China, a German official said on condition of anonymity because he wasn’t authorized to talk to reporters.
The trip is Scholz’s first official visit to India, though it is his fourth meeting with Modi since taking office in 2021, underlining Germany’s interest in reaching out to Delhi.
“There is huge potential for intensified cooperation in sectors such as renewables, hydrogen, mobility, pharma and digital economy” with India, Scholz said in an interview published by The Times of India newspaper on Saturday. [...]
Modi said the business delegation accompanying Scholz was firming up agreements with India in digital technology, the telecommunication sector and diversification of supply chains.
Scholz’s delegation included several German business leaders, including the head of ThyssenKrupp, which is trying to sell further submarines to India.
Asked whether such a deal with India, which has been a major buyer of arms from Russia, could be struck, Scholz said he had “the impression that the quality of German technology enjoys great recognition and appreciate here.”
The German side also made their view of context of the visit more clear, but in some remarks by lower level diplomats:
“The Chancellor will talk geopolitics with Prime Minister Narendra Modi. We will see Russia and Ukraine very high on the agenda. We have seen US President Joe Biden in Ukraine and we have listened to Russian President Vladimir Putin’s speech yesterday. So, this will be a very important item on the agenda,” Ackermann said in a press briefing. “But I think it shouldn’t be restricted to that. Your northern neighbour China certainly be on the agenda. Everything which is linked Indo-Pacific will be on the agenda and I think that there is an ample opportunity to discuss a very difficult international environment where we see India as a very influential and extremely valuable partner in discussing these questions”, added the German envoy.
OTOH some of that is a bit misleading as the same envoy made it clear that Germany wasn't trying to push India on their Russian oil purchases.