I agree, also important to note that the “big square” actually served a purpose in preventing cavalry from picking off separated infantry and detering cavalry charges. From my understanding the formation was genuinely effective until horses stopped being a factor in war.
I mean maybe “honour” played a role in why they did things but i think we’re sometimes too quick to assume people in the past were idiots.