Short answer:
A container is like a 'file system', it gives us a structure to organize data, including meta data that helps us look up what goes where but it does not tell us what to store. Again, like a file system allows us to store any type of data, ranging from ZIP files, video, documents and whatnot, it only concerns itself with organizing this data.
Many camera developers use a TIF container to store RAW photo data, but they each use their own algorithms to compute their raw data. The container is the same but each of the manufacturers stuff different data in there.
MP4 containers for example are frequently used for video, but Canon CR3 RAW photos are essentially MP4 'containers' as well.
To illustrate I opened a CR3 RAW photo using a MP4 container template:

The boxes below the HEX window (the atoms) were perfectly parsed using a MP4 video template.
IOW, the 'MP4 container' is a way to organize data and in one case it can be video data, or as in above example a Canon RAW photo.