Green’s Dictionary of Slang

rear v.

also do a rear, have a rear
[rear n.]

to defecate.

[UK]Partridge DSUE (1984) 965/2: from ca. 1890.