1224,
I think that you will find every country has different legislation but generally speaking they where quite withing thier right.
However as has been stated, there are so many people passing through each day that it is impracticle to check everybody's computer. People are targeted for whatever reason (lets face it - random searching is a waste of resources) and the pilot in question would have been known about be it from a tip off or some other means.