You may have confused the definitions of congruent and similar. Because the corresponding sides and the corresponding angles in B are congruent, as indicated by the markings, the triangles in B are congruent.