Why are the beds so hard?

The short answer

That's how they're meant to feel in Morocco.

Moroccan mattresses are traditionally firm — wool-stuffed or high-density foam on solid bases. The tradition comes from the *sedari*, the firm cushioned benches that line the walls of Moroccan living rooms and double as seating and sleeping surfaces. Firmness is a sign of quality, not neglect.