I am not sure about Morocco but this is your run of the mill newspaper rack. If you were in a breakfast restaurant in the 60-80s you would likely see this with a different section of the newspaper separated and hung. These were even at the big double arches. People may put magazines on them but it was made for newspapers.
It would be normal for a ...
Old fashioned wall mounted drying rack
Usually wooden devices like this on walls open up and hinge down, and are old fashioned drying racks.
Here is one with arms that open, and is not a lean out rack like the one in your room.
Clothes Drying Rack - Old Fashion Design Copy
It bothered me to see the wife having to work so hard to set up a collapsible drying ...