How is difference between spot and future index reduces on expiry?

futidx

Future = spot + cost of carry

As and when a contract gets closer to expiry, the cost of carry keeps reducing. It becomes 0 on the last day, and hence Future = Spot.