Or maby your idea of whats perfect doesnt exactly coincide with what was created.

If all was "good" would you have a way of distinguishing? Same-ness, without motion, all would be nothing. There would be no contrast by which to preceive nor would there be any need.

The perfection of imperfection, change, motion, contrast. From chaos a new way of preciveing order is revealed.