This question already has an answer here:
I can't come up with an example right now. But hypothetically let's say there was a word that was ka. And they combined it with ku to make a new word. then it'd become kagu instead of kaku. It usually gets softened like that. Why is that?