Do you have a lot (and I mean a lot) of icons/applications/folders in the dock? Could be that they're all just indexed, if the RAM is available for it to do so.
What you should be looking at is memory pressure. Unused RAM is wasted RAM. So while some processes may take up unexpectedly large amounts of RAM, often they'll give up most of it for higher priority processes.