This is the Hofmann bromamide degradation, which converts a primary amide $R-CONH_2$ to a primary amine $R-NH_2$ with one fewer carbon. Bromine and alkali generate an isocyanate intermediate via 1,2-migration of the R group from carbon to nitrogen, and the carbonyl carbon is expelled as sodium carbonate.