Tracking behaviour is useful to ensure the site is working, that people are able to use the site and make purchases, or even to know what parts of the site people are using. There is nothing wrong with that, so long as the logs are not shared and not kept for longer than necessary.
Tracking people's use of the site to build a profile of them and share with third parties, without consent, is where the privacy problem comes from.