"Wrack" and its forms is the verb denoting a destruction of some object, i.e., "I wracked my brain", "the coast was storm-wracked", "that old house has gone to wrack and ruin."
I thought exactly as you until just yesterday I questioned was it “wracked my brain” or “racked my brain”. A quick search said it should be “racked”. I saw your post and did another search and found the result I posted. I’m a stubborn and cynical old man so I’m not 100% convinced “rack” is correct. As we all know: It must be true if it’s on the internet. Right? :)