In Alabama, legally speaking, an unborn fetus does in fact have those rights. The concept is called fetal personhood and there's been a very long incremental legal process towards outcomes like this, with the ultimate aim of banning abortion. Part of that push is the general concept of fetal homicide, which is recognized at the federal level and in 38 states, so unfortunately not just Alabama and Mississippi. It's a rather clever tactic, really, though obviously being used towards incredibly shitty ends.
Correct me if I am wrong, but is this not law everywhere in the US and not just Alabama? Folks who have killed their pregnant wives like Scott Peterson and Chris watts were also charged with the murder of their unborn foetus and the unlawful termination of a pregnancy.