Raw data almost never goes directly into a model. Scaling stops one feature dominating because it has bigger numbers. Encoding lets models understand categories. Done wrong — especially fitting on test data — it corrupts every result you produce. Done right, it's invisible infrastructure that makes every model work better.
1-A 2-A 3-A 4-A | 5 std 6 binary/indicator 7 = Salary's huge range dominates the distance metric 8 = 3 binary columns 9 = Standard for normal-ish data/linear models; MinMax for bounded inputs | 10 = Fitting the scaler with test data - inflates evaluation