it could’ve been “written in C” for a Bb instrument like Trumpet
see transposing instrument: https://en.wikipedia.org/wiki/Transposing_instrument
I don't think trumpets and clarinets were Bb until the mid-1800s; IIRC even in Brahms' day the trumpets were still not keyed.