Why is the direction of the induced current in the secondary coil opposite to the direction of the current in the primary coil?

The induced current in the secondary coil is opposite due to Lenz's Law. This law states that the induced current opposes the change in magnetic flux that caused it.