The left sword: has everything above except only Looting 1

The right sword: has Looting 3 \*\*and bane of anthropods\*\*

The above text is the supposed outcome of the new sword. I don't want BoA, I just want sharpness. But whenever I try to click the sword to get the new sword, it seems to glitch and it does nothing. I get my two original swords and no merged one.

I thought using the anvil would replace the enchantment that can't be used. Is this a glitch, or is there no way to keep the Looking 3 sword and replace BoA with sharpness?
Why doesn't the anvil work? Is it a glitch?