Some of the reasons that cause mouse lock on the user’s PC are:-
A virus or malware infecting the computer system.
Incorrect or corrupt mouse driver installed on the PC.
PC not being restarted for a long period of time.
Damage to the USB port on which the mouse is connected.
Old Windows OS version on the PC.
There can be several other reasons for the same problem, but the most common of them are mentioned above.