The use of “they” as a gender-neutral 3rd person singular pronoun has a long history going back to Middle English (see the OED entry for “they”, def. AI2). This article refers to some early 20th century attempts to deal with this problem:
https://www.theatlantic.com/culture/archive/2021/06/gender-neutral-pronouns-arent-new/619092/