Its likely to be to reduce the 5V signal from the switch to 3.3V logic levels, though IMHO the 1K5 resistor should be increased to 1K8 (nearest preferred value to 1.7K). Also the 10K pulldown resistors are redundant if it is driving a 3.3V MCU. It will be problematic with most 5V MCUs (out of spec logic '1' level) unless they either have TTL compatible input thresholds, or the 3K3 resistors are removed and the 10K resistors are kept.
The other thing it does is put 1.5K between any ESD at the switch and the MCU input pin, which will vastly increase its ESD tolerance, by limiting the peak current its internal protection diodes have to clamp.