How come the murder of a pregnant woman is a double murder?

In states that allow abortion it’s still a double murder to kill a pregnant woman.

Can someone explain why because this seems inconsistent

How come the murder of a pregnant woman is a double murder?
Post Opinion