Oddly enough, last year I used dish soap in the laundry for a few months without noticing, and nothing like this happened. I was surprised when I looked it up and saw this kind of thing as a common occurrence. Couldn’t believe I had picked up this container each weekend for months without noticing the picture of plates and glasses on the front.
I understand now these soaps are quite different from one another and the fact nothing happened to me is a fluke, so definitely don’t do this on purpose.
Related: I do not recommend pouring dish soap in the jet dry/rinse aid port of your dishwasher. It’s… Something special. (And you need to rinse that reservoir really well after that.)
This is a result of a number of factors more than likely. Root cause is a bad detergent/soap to water ratio, which can be caused by putting too much in or unexpectedly soft water (people who are used to putting hard-water amounts of soap into washing machine loads who suddenly move somewhere with super soft water will often do this once or twice before dialing it back), but a contributing factor here is likely that the drain line that the hose is dumping into is partially clogged, so the suds are having a chance to backflow up past the hose instead of staying with the flow of the water, or the wrong type of soap is used as was mentioned above.