Shark attacks are rare and most often occur due to confusion or curiosity, rather than as intentional attacks. Experts advise staying calm if encountering a shark and following basic safety precautions while swimming in the ocean.