Why are the risks of shark attacks greater than dog attack attacks, when dog attacks are more frequent?

Why are the risks of shark attacks greater than dog attack attacks, when dog attacks are more frequent?