Why did my boyfriend bought it up during an argument?

last Friday I was having an argument with my boyfriend, he then bought up my cooking (out of nowhere, really) saying things like "please, don't cook for me ever again it makes me uncomfortable" then I said I put heart into it, he then said: I know" and laughed. I feel hurt because he was always really happy when I cooked something, even eating in excitement and then saying that I have mad cooking skills. it also came out of nowhere really because I haven't cooked something since 6 months for him now
Why did my boyfriend bought it up during an argument?
Post Opinion