they are usually a dual filament bulb, like an automotive 1157, so the brake light and tail light operate separate filaments so very likely the tail lamp side burned out.
I just had the opposite on my Iron barrel, where the brake light wasn't working and I traced all through the bike for an electrical issue only to go where I should have started and found the bulb simply burned out.
Damon