Barracks are used to train units. The more barracks you have in your country, the greater the recruit rate is.