The main way in which a desire to build a stronger nation might affect a ruler's decision to become a protestant or a catholic is because he or she would want to "become" the religion that is favored most in the country, as to eliminate any political dissent by the people.
Hitler used economic woes and strife with local jewish buisness, popular social discontent and political discord to take absolute power in Germany beginning in 1933.