In 1800 almost nobody in France thought of themselves as French. By 1900 they all did. Unlike farming, industry needs steel, coal and other resources which are not uniformly distributed, so many micro-states were no longer viable. Meanwhile, empires became unwieldy as they industrialized and needed more actual governing. So in 19th-century Europe, micro-states fused and empires split.