What I don't understand is that IG must be taking out an equivalent position somewhere and has to make a profit somehow. What have I missed?
the vast majority of positions go unhedged they make a healthy profit per customer without hedging, you can check the number of active accounts and net profit figures in their public accounts online. Most retail trade with small accounts, small stops in volatile markets hence it is a reliable profit centre for them.
If you are one of the tiny minority of clients who are consistently profitable they will place their positions into a separate 'book' and hedge accordingly. They can hedge in the underlying futures no problem.
All to easy.