I assume it is “cast” brass given the fact the leg supports are soldered in place.
And the fact it has a handle and the sides of the compartments are all “sloped” makes me think it is a “serving” piece for mints, candy, whatever. Like one often finds on counters, desks, end tables, etc.