Could've, phonetically, sounds like "could'f" which they render as could of. Grammar. Pretty simple stuff.
Also, if you write could of and claim it to be correct, you deserve to have your eyes gouged out and your fingers broken with their tendons severed.