OpenAI had already announced that ads were coming to ChatGPT. Also, Claude's free plan is incredibly limited and far less popular, so it's easier for them to keep it ad-free.
This has been in the discourse for a while, they didn't make a shot in the dark.