Your operating system likely does not allow arbitrary users to send ICMP packets. The ping executable is special to your OS, likely it is set up to execute as "root" ("setuid"), which is how it appears that arbitrary users can send iCMP packets with it.