Pets provide companionship for the elderly in various ways. They can offer unconditional love and emotional support, reduce feelings of loneliness and depression, provide a sense of purpose and routine, encourage physical activity through daily walks or playtime, and offer a source of entertainment and joy. Additionally, caring for a pet can help elderly individuals feel needed and appreciated, boosting their self-esteem and overall well-being.