If we find any substance, such as water or methane, which becomes ice at low temperatures, it probably means that this planet was originally formed at a distance (a few astronomical units) from the primary star, where ice could exist, and moved toward the primary star thereafter.