It’s not that the body necessarily prefers glucose, but that too much glucose in the bloodstream is deadly dangerous, so the pancreas secretes insulin to force the glucose out of the bloodstream and into the muscle cells to be burnt and into the fat cells to be stored as fat.
If the muscle is forced to take more glucose than it can use right away, it stores it as glycogen, but glycogen cannot leave the muscle, so if more and more glucose keeps coming in, eventually the muscle becomes insulin-resistant. Likewise, a fat cell that contains too many triglycerides also becomes insulin-resistant, because the fatty acids cannot leave the fat cell until the insulin level drops below a certain level.
This is why a well-formulated ketogenic diet can be so helpful: the low insulin level it promotes allows the muscles to burn some of their stored glycogen instead of stuffing them with yet more glucose, and it allows the fat cells to release fatty acids into the bloodstream for the liver to turn into ketone bodies and for the muscles to burn in place of glucose.