What is the difference between container folder and pages folder?

I am new to strapi and even newer to strapi v4. when creating a plugin i find Container and Pages directories contain almost the same sub-directories the only difference is the initializer
and if i simply delete the container folder and build no error appear so what is the usage of each?