Why is phonics not spelled

Why is phonics not spelled the way it sounds? >