IPv4 is a subset of IPv6! They literally invented a way to map from an IPv4 address to IPv6 with a special prefix.
I don't know why the former was deprecated, but I think almost no OS supported it so might've been just that.
Now some software use those addresses to store IPV4 addresses in the same memory as an IPV6 address.