as Steve mentioned above, we might not know kernel's business but looking further at close syscall docs (close(2)) we can see:
If fd is the last file descriptor referring to the underlying open file description (see open(2)), the resources associated with the open file description are freed;