Looks like it's been glued. Maybe hotglue? If so you can probably gently remove it with a sharp knife or similar tool.
If it isn't hot glue your best bet is to cut the wires and solder them to the new battery. Make sure you don't short the wires and properly insulate the area you soldered.