I was recently given some 18th century pieces, and this was with them. I've seen similar wall boxes called candle boxes and knife boxes. This one has a steeper angle than most and no lid. It would not make sense for long tapers, it could hold stacked 4" candles, but why the angle? You could double the capacity without it. A knife box might make sense, storing them blade down, handles up.
It is very sturdy, made with 3/4" boards, held together with square nails and nice patina throughout. Any insite into age and purpose would be great.