What are the differences between an EOR and a BPO/staffing agency?

What are the differences between an EOR and a BPO/staffing agency?