Depending on where you are in the world, the salmon you eat raw isn't the same as the salmon you eat cooked. There are extra requirements around sashimi grade salmon such as flash freezing to kill parasites.
The risk profile is not the same as eating undercooked salmon that is not intended for raw consumption.