I get that some keys are more difficult to play in, and there might also be range issues on a lot of instruments, but I never really understood it
the most obvoius reason to change the key of a song is if it's too high or low for the singer