It's not that's surprising.
To support open recursion, a lot of functional languages consider differently top level functions and functions inside functions.
That's why in JavaScript you have a murky global object with some weird scope rules that makes top level functions globally available.