There are different tooling & material costs which also need to be considered.
Injected kits are produced using a tooled steel die. This is very expensive. I have heard a price quoted as $1000 USD per part. You may easily be talking about a quarter million for a set of dies to produce just one kit. The benefit is that the dies have a very long production life -- production runs of tens of thousand of kits are possible. The tooling cost gets amortized over the entire production run.
Then there are the "legacy" kits which paid off their tooling decades ago -- why are they still so expensive? [Rhetorical question -- we know the obvious answer. Its all about the Benjamins! No response is required]
Resin kits are short-run subjects and as pointed out above are often the only game in town. Resin kits are produced by the original modeler producing a master from which copies are made. This is often scratchbuilt and requires many man hours to produce, especially one which will produce good resin results. The master is then put into RTV rubber as a mold. The amount of RTV necessary to produce the hull of the Monterey kit noted above is about $25 USD. Additional parts may cost another 5 to 10 bucks. If the kit & RTV mold is well engineered it may last for about 30 production pulls. The heat produced by the curing resin degrades the RTV causing it to break down. While less expensive than a steel die, the mold cost is recurring and is amortized across a smaller production run.
I have an Iron Shipwright USS Langley which is one of the first four production pulls. The mold failed after the fourth pull and a new mold had to be made (big hull piece = big $$$). I can tell it is an early pull because the master was changed to improve casting success.
Resin kits are often solid and require more material than an injected kit. If not solid, the resin wall thicknesses are also often thicker than corresponding injected parts
Resin costs about $25 to $30 USD per pound for an over-the-counter "household/garage" kit producer. Last time I checked, styrene pellets for injection molding were about $0.25 per pound in rail-car lot quantities.