Peculiar pair of stars in a binary system found in a galactic core gives clues to evolution of unusual stars