However it's still currently good enough to get an average person to their destination if their GPS enabled device has run out of battery and they happen to have a map and compass on them.
...and the map is also the same device.
[1]: https://en.wikipedia.org/wiki/MEMS_magnetic_field_sensor
Enclosures are all either plastic, aluminum or magnesium. Circuit board will be copper. Maybe some internal structural elements or RF shield cans are made of steel?
Microphones are MEMS these days, so no magnets there. Speaker magnets are tiny and also tend to have weird magnetization patterns that seem useless for making a compass (e.g. disc with a circular channel for the coil where N-S are inside of the channel)
In other words, the skill is about as rare or rarer than the equipment.