It is a (book)shelf and I think that one came with an (early?) Western-house or so, I have a few very similar ones in a box somewhere...
This pic is from Collectobil:
If you look closely at the back-view of the set, you'll see such a schelf against the left-wall on the inside.