A gas provides a "bearing" for the heads to ride on as the disk spins below it.
edit: Maybe something in this direction? [2]
[0] https://en.wikipedia.org/wiki/Halbach_array
[1] https://en.wikipedia.org/wiki/Magnetic_bearing
[2] https://ntrs.nasa.gov/api/citations/20070006849/downloads/20... ("Development and Testing of a Radial Halbach Magnetic Bearing")
Plus I think that the 0/1 bits are not encoded as "no magnetism"/"some magnetism", but instead as "north magnetism"/"south magnetism" since magnetic fields have a direction.
And I don't think the magnetic fields on the platters have any appreciable effect on the head besides the electromagnetic effects at the sensor.