There is no Windows malloc(). Only UNIXes have the C API as part of the OS API.
malloc() is defined by the C Standard. If you want to claim your compiler is ANSI or ISO certified, you need to support malloc() (as well as the rest of the C Standard library).
UNIXes are the only OSes were there is an overlapping between OS APIs and libc due to C's origin.