It comes from C function that was declared (in contrast to a C function that was not declared which was common in K&R C).
At the time it was coexisting with pascal calling convention (wher the callee cleared the stack), so it kind of made sense to call it after the programming language.
Everything you might ever want to know about calling conventions.