Plastics are just pretty damn convenient materials. They're solid, cheap, can be made flexible or hard, don't rust, are easy to clean etc... Glass is heavy and breaks when dropped, metal is less heavy and only dents but it's more expensive than plastic. A lot of metal containers have an internal plastic lining simply so that food (and especially acidic food) doesn't react with the metal through direct contact.