Eric is here simply because Sookie wanted him here. Actually, he visits the beach on a fairly regular basis. It's usually at night, very early in the morning before anyone else is around, but of all the spots in the dome, the beach reminds Eric the most of his home, the human one.