Algolia takes a "records sample" whereby it fetches the first 10 records of an index on an empty search. From these, it deduces which attributes are present in your records.
Therefore, if an attribute is not present in these first 10 records, Algolia will not suggest it as an attribute when selecting, for example, an attribute for faceting. You will also see this error message when trying to add it: