You understand the distinction between Islamic veils/headscarves (which clearly imply religious affiliation) and clearly non-religious, headscarves worn by many style-conscious, but secular, women?
Your misunderstanding may come from terminology - a headscarf need not be religious at all, and headscarves which are not religious (it is easy to tell the difference) are NOT banned.