It’s unclear how the planet avoided its star’s bloated red giant stage.