Lutron Electronics Interview Question

Why did I use the particular method in my project?