The organs are known as Vestigial organs. The evolution from land-dwelling animal to the marine animals has led whales as well as dolphins, to lose hind limbs. The pelvic and leg bone serves no purpose in them and just provide the anchorage to muscles
The correct answer would be the last one: "evolved from past organisms." This theory basically just states that all living organisms evolved from a single common ancestor. Hope this helped! :)