The Law of Ceremonial Purity
Commentators explain that Saul's first thought about David being "unclean" was a logical assumption. The new moon festival was a religious feast involving peace offerings, and according to Mosaic Law, anyone who was ceremonially unclean was forbidden from participating. This provided a plausible, religiously-based reason for David's absence on the first day.