Although, the use of 'ensign' as a rank is a direct result OF its use as a flag, isn't it? Meaning: the word was originally used simply to describe the junior officer in a unit who carried the flag into battle. And was originally an Army rank, not Navy.