I've seen many LaTeX Code Snippets like this one here
\AddToShipoutPictureBG{%
\AtPageUpperLeft{%
{\color{red}%
\rule[-1cm]%offset PageBorder
{\paperwidth}%{14.8cm}
{1cm}%height
}%
}%
}
where most line endings - if not all - are escaped with %. I don't understand the reason, as % marks (per definition) text, which will not interpreted by the compiler. So What is the reason, people escape their line endings?