NYT have probably the strongest crossword puzzle bases in the world, they probably saw Wordle as either a competitor or a nice addition. They have a side quest basically of owning clever little games like that.
My guess is they've been hearing about it a ton from their crossword userbase and wanted the traffic, users, and IP.