The scientific payloads of missions (development, design, manufacturing, operation, analysis) are usually a large percentage of the total mission's cost. It's worth looking at the exact scientific capabilities of a mission while comparing it with the cost. It's amazing how economically the Indians sent a probe to Mars, but its scientific capabilities were far smaller than the billion dollar NASA missions.