Why was prussia the strongest state in unified Germany?

They modernized their government and army so that Napoleon could be defeated.