A cat guarding its sleeping owner is a natural, often instinctive behavior driven by deep attachment, territorial instincts, and a desire to keep watch over a "vulnerable" family member. They may sleep at the feet or side to monitor the room for danger while marking the owner with their scent.