You are right that every 'article/page' or class only can contain the data that has been specified for that class. For example title and image.
But when you construct your templates (that tells ez how the page should look), you can also add related objects and childs of the object to be shown on the page.