Hi,
You are not asking an easy question. The 'apostrophe ess' form is called the Saxon genitive, which is derived from 'Old English', so it's a very old feature of the English language.
It indicates possession or close association. Perhaps it's easier to see/feel close association when you are talking about something you can count?
Best wishes, Clive