They don’t currently serve any purpose, except as an expensive sanity check.
However, removing them would result in old clients to no longer treat such transactions as confirmed (until reindexed).
Is this a compatibility break we’re willing to make for 0.12?