They'll hack in and then just add affiliate / ad links hidden everywhere from view so they can try to raise the google ranking of some other site (like one that sells viagra). Google has done much better recently fighting this type of reputation spam.