Voldemort murdered Hepzibah Smith to steal Helga Hufflepuff's Cup and turn it into a Horcrux. He killed her to create this Horcrux, then framed her house-elf Hokey for the murder. Bertha Jorkins' death was used to turn Nagini into a Horcrux, not the Cup.