Basically, it costs $1.5 million to hire 4 full-time programmers and a few additional outside contractors to code a forum script.
The basis of your logic is flawed. It does not cost that much money to hire 4 programmers. We'll never know why that much money was thrown at those guys, but I assume the purse holders didn't want to do due diligence or investigate other companies.