Cells need to be of different shapes and structure inorder to perform different bodily functions.
If all the cells are of similar structure and function, they will be able to do only few basic functions.
But if the body has to perform many special functions, cells need to be specialised in to different types and hence should be of different shapes and sizes.