Have you used a dictionary? They are very different jobs, although sometimes there may be some overlap in functions. One might as well ask 'Is there a difference between a surgeon and a barber?' on the grounds that once one person did both jobs.
In response to your last point, I can say that in the UK both bailiffs and sheriffs exist.