Problem in classification by adding images by linear stretching

The problem is solved by using below option (slope and intercept) although I do not know why:joy: