If the server responds with gzipped data (compressed on the fly) then MITMProxy will store it that way. If you specify the -z or --anticomp command line argument, it tells servers that it doesn't want gzipped data so you should get the raw data instead.