How current transformer measure current?

A current transformer doesn't 'measure current'. It merely reduces a large current flowing through its primary to a smaller current which can be read by an ammeter connected to its secondary. At the same time, it electrically isolates the secondary circuit from the primary circuit, which is essential if the primary circuit is part of a high-voltage system.