I've experienced that, and I believe they sense a difference in your concentration or a heightened sense of activity, and that attracts them.
Also, in my experience, nothing attracts their interest more than when I'm involved in searching through stuff, or cleaning out or organizing things.