While I’m not currently looking I always make it a point to respond back as well, letting them know I’m not currently looking but will keep them in mind in the future.
I got my current job by reaching out directly to the in house recruiter from a place that had reached out to me a few years earlier. Pretty much guarantees you’ll get the resumé looked at and not just lost in the mix of online applicants