No, it's not mandatory to buy a medical insurance policy for a TRV application (not super visa).
Having said this, it's a good idea to include proof of this policy in the TRV application.... because it shows that you have covered any unfortunate medical emergency/situation