basically it's there to keep the cam belt at the correct tension, it bolts to the cylinder head and then once the cam belt is fitted it is adjusted outwards against the belt to increase the tension.
it needs replacing because it runs on a bearing and there's a fair bit of stress on them, the bearings wear with age and can basically break or loose tension fucking your cam belt/head/engine.