Did you have a margin loan at this time? If yes, IB takes your shares as a collateral and then they lend it. Same if you bought shares less than 2 days ago and they had not been settled yet.
Run Activity statement for the ex dividend date and see what “Collateral for Customer Borrowing” section says.