marium would be the genitive plural and inter governs only the accusative but it seems the ending was simply converted from i a to i um to yield a noun of the neuter gender and perhaps to make it resemble repository container storing place nouns in rium like libr rium although the a in marium is short in the classical language