If it makes you feel better, you can randomize the board so that you get the set on the river. Pre-flop that was just barely better than a coin toss for you (56% vs 44%). It is only significant that it ran out that way had you bet all the way to showdown, but pre-flop all-in it really doesn't matter... It is just one of the possible boards that can be dealt. You could just as easily have lost to an AAK, KKK, a running flush, any A and K without another Q, etc. etc.
Top set cracked by some absolutely insane miracle backdoor straight. ACR at its absolute finest!
All in pre btw