It's a convention for A LOT of aspects of flying: air traffic control instructions ("turn left heading 090"), charts ("fly heading 070 after takeoff"), etc are all in magnetic coordinates.
Planes also a normal compass as their ultimate backup instrument, which of course is also magnetic.
Finally, while modern systems could operate off true north instead, not ALL planes have that.