Most likely it didn’t hurt the neck directly but rather did not provide the normal tension reducing benefit that hot water does.
On top of that your muscles do spasm a bit when you are cold which could possibly build more pressure which over a period of days/weeks would result in pretty bad stiffness.