Digging Into the Internal: Causality-Based Analysis of LLM Function Calling