Why is a test invalid once you open

I see it all the time in faint lines. why is a pregnancy test invalid when you take it apart?