A unit indexer assigns unique indices for units using a nice dynamic indexing algorithm, and it provides the user with unit-index/unit-deindex events
If you attach data to a unit, and then that unit gets deindexed, the index may be assigned to some other random unit, meaning your code wouldn't be able to tell the difference between both of those units. This is where the de-index event comes in handy