the AA Similarity Postulate says that if two angles in one triangle are congruent to two angles in another triangle, then the two triangles are similar.
AB and ED are parallel, so
∠BCA and ∠ECD are congruent because they're vertical angles
∠BAC and ∠CED are congruent because they're alternate interior angles