There's a LOT of difference in the frames.
The rockhopper is an entry level MOUNTAIN bike. The hardrock is a BOARDWALK/BIKE PATH bike. The hardrock is heavier, has poor handling characteristics at speed, is made of cheaper metals, and won't take the abuse that the mtn bike frame will without failure.