why only data link add trailer
Data Link layer protocols add a trailer to the end of each frame.
The trailer is used to determine if the frame arrived without error.
This process is called error detection.
Note that this is different from error correction.