Because you are writing it in binary mode.