Caused by parasites often in raw or undercooked fish. The freezing process kills the parasites and makes the fish safer to consumer; farmed fish are very unlikely to contain the parasites due to rearing methods.
Source