How to increase the number of Cores available

In task manager, it shows 16 cores but when I run docker desktop, it only shows “10 cores available” why is that?

Because everything is running in a virtual machine

For changing the number of CPUs, check the following documentation:
https://docs.docker.com/desktop/settings/windows/#resources