Does anyone know why Maduin was chosen to be (SPOILER) Terra's father?

Does Maduin have any other significant plot contribution?

Did they pick him to explain why Terra can use fire, ice, and bolt magic?

Or did they just pick him out of a hat?

Thoughts?