Hi Shefali,
Our members have provided you with the required answers professionally, or should I say technically, and I hope you are feeling boosted. Apart from what you have in mind regarding the above-mentioned suggestions, I would like to add some simple things for you to feel good.
I can understand that from a layman's insight, the thought has been raised, and I would like to put it in the same way: every department in an organization has its own functions and importance. Each department is dependent on the other like mutual relations and benefits.
It is very true that many share the same feeling. Even I have come across comments like that, though I didn't work for HR. I worked for a shared service center organization that houses over 8000 employees in one location hub alone, and it is globally established. It has an HR shared service center with dedicated heads, reportees, and a number of sub-units within. I must say they always come up with innovative ideas, do everything possible to train, motivate, retain employees, and also maintain all rules and policies. Personally, I have always been inspired by the work they do for employee engagement. However, other departments would still comment that they simply loiter around doing no work or showing off. Personally, I feel this comment is purely the outcome of certain individuals' behavior. You can find these types of individuals in any department, maybe 1 or 2 pests.
From a common man's perspective, I would like to say that all other departments' functions are dependent on software, hardware, paperwork, coding, monetary funds, etc. Whereas the work of HR, as our members above have said, basically depends on one of the biggest assets of the firm, which is "People." All the work revolves around the "People," you see - the policies, rules, etc. It deals with the skills of handling employees and retaining them to the best of their abilities, thus making its own organization competitive in the global market. Being a part of HR means taking care of everything from employee health care, infrastructure, welfare, policies, media, to answering to the CEO.
So, you can see now, the work of HR is more psychological, variable, logistic, and continuous, whereas the work of other departments is constant, more focused on doing things at a particular place, and sticking to standards. If HR is soft core, then other departments are hard core, and both must go hand-in-hand for a successful organization. Therefore, it is human nature to pass all those comments. Next time you hear the same comment, just nod your head and smile, saying, "Yes, you are right. We are being paid to look after all of you," and walk away. I know it's pretty challenging to do this, but just give it a try.
Please correct me if I'm wrong.