True but it is still a lot of money even when you take that into account. Poland bought the whole package and it cost them nearly 10 million for a TB2 and it needs more infrastructure than Harop. Turkiye produces SOM cruise missiles for a million dollars per unit.
Let's say Harop costs 2 million after taking into account the costs you mentioned above (I'm %100 sure that it costs way more than that) it is still a lot for a kamikaze drone. When it comes to drones Israel and the US are robbing people. Israel leased 2 Herons to Greece for 39 million euros for 3 years. If you don't ask for the whole package you can buy 6 TB2s with that amount.
Pricepoint of harop (for its mission profile) vs other platforms like TB2 is whole different subject to get into.
That is simply up for every military (that both available to) to make comparison and determination on....as both these drones are clearly not 1:1 intersection in their profile.
At the time of question for example (2000 - 2010 decade) when India made first harop acquisitions (alongside other Israel UAVs), there is a strategic nature to relationship building up that is not really expressed in the dollar values of deals in the typical print media for example....media that tend to look from outside in (and focus on the shell rather than innards)
i.e we bought and continue to buy them specifically for what is inside them, the EO, electronics, RF, sensoring etc as simply pure ToT cannot be done (especially as relationship is still building), and it is good to have proven reliable references in operation for what we want within our own ecosystem.
It is part of larger LRDE+BEL and IAI-Elta + Rafael cooperation. LRDE, BEL (and private companies allied to it) has since accelerated what is in its own stable for production-deployment in many more technologies that will sustainably integrate into India own UAV ecosystem (and other def-tech ecosystems more generally) moving forward.
A similar thing is now evolving with US too (so we get some pretty ridiculous prices at first glance regarding guardian drones etc, till you dig somewhat deeper past media reports).
Israel predates them about 20 years (US,) in this relationship... in fact israel was the US MIC early checking/scoping you can say for later via Israel. France predates Israel w.r.t this (again by another 20 years), it was arguably original western entity that had its domestic political backing to do this first with India.
Anyway it get off topic. W.r.t this whole thing in case of Tb2, there is also example to look at regarding its EO sensor (Canadian) that faced sanction recently and thus Turkey has to develop+backwork its own. This illustrates the criticality of certain components....and thus why it may not be 1:1 to compare prices depending on how such things are going on in tech flow behind scenes in some of the (especially initial) prices quoted.