At some point were those accounts used ?
Go to Settings > Non-inventory items and see if they are still referenced there.

If you created the initial Sales Invoice using a Non-inventory item referencing one of those accounts and you subsequently changed the COA for that Non-inventory item then perhaps Manager is memorising that initial connection.