The joke is a pun on the word 'boring'.  To drill through the earth as an oil well driller, your drill bores through the ground.  'Bore' or 'boring' can also mean 'unentertaining' or very unenergetic. The job may be boring, but it is also a job that involves boring.
The oil well driller had a boring job .