Do caregivers get legal rights if they are the sole relationship a nursing home attendant has?

Probably not. Your first legal obligation is to your employer. You might feel you have an ethical or moral obligation to the nursing home patient you can for, but that gives you no legal rights since you are not related by marriage or other kinship. You would probably have to go court to be granted any legal right like guardianship or conservatorship.