Cuda toolkit and driver

Hello

Im using Linux Mint 21, when I install the cuda toolkit, the apt uninstalls the nvidia driver.
Why?
How can I must install a development environment and nvidia driver at time.