My understanding is that 2 things happen.
The outer lipid containing layer is attracted to the water,and therefore breaks up in the presence of water and detergent, leaving the virus without any protection - this is a massive over simplification, and completely wrong, as most people tend to be...