Why Germany used by he?

The use of "he" to refer to Germany is incorrect and not commonly used. Germany is a country and should be referred to as "it."
Copyright Wanderlust World © https://www.ynyoo.com