A nursing home provides care to people who can't be cared for at home or in the community. Medicare generally does not pay for nursing home care.