This flash memory works without connection to a power source or gnd?
The inputs are floating and there might be some remaining flux on the board which is slightly conductive, pulling some inputs high or low. If the board was completely clean, you would probably see random values caused by noise.