With ESA people have different payment cycles. So I expect you were paid before you submitted your UC claim but it overlapped by a couple of days. Hence the over payment. Maybe other members can share their experiences.
David
Nothing on this board constitutes legal advice - always consult a professional about specific problems