I wonder if the taste of detergent was present on the surface due to some differential process occurring during freezing that concentrated the detergent in the outer layer of frozen water? Hmm... probably not, but see [1] for how zone refining is used to concentrate chemical solutions through freezing.
[1] https://en.wikipedia.org/wiki/Zone_melting