If you've made shrimp cocktail sauce before you might be aware that it is more likely to form a gel when chilled. This is because of reactions between the ketchup and the horseradish. Ketchup naturally contains pectin and horseradish is naturally rich in acid. When they are mixed together, it develops a jelly-like texture. It is likely to return to normal after stirring it.