As a tourist you aren't expected to wear a hijab or any other hair or facial covering in Egypt. The only exception to this is if you're visiting a mosque – in that case, you do indeed need to respect the fact that you're entering a religious building and cover up.