The original RPG was Dungeons and Dragons I think. The aim is to pick a certain class of character (warrior, wizard, etc) and progress through quests while upgrading your skills/weapons/armour/etc.
Theoretically, an RPG could offer you total freedom to be anything in a fictional world, but really there has to some kind of progression in order for it to be a real rpg experience.