Note: I also noticed that transactional replication applies only to those articles/tables with a primary key.This is the only reason it keeps track of the data changed at the publisher level.

To know more about Replication please go through these links.
Thanks for reading :)