Dear student.
Secondary cell wall is seen only in mature and nondividing cells. Xylem vessel bears secondary cell wall as it provides mechanical support to these vessels in order to transport water to long distance.
This is why secondary cell wall is present in xylem vessel.
Regards.