The beautiful exterior is taken as a sign of inward or moral goodness; the nonbeautiful or ugly exterior is often imagined to correlate with evil...
Wikipedia foundation.