Lasers might be really useful if a ship is being attacked by a swarm of drones. (The part about hitting those drones may be future, though...)
part 1: https://www.navalgazing.net/Lasers-at-Sea-Part-1
NB/ Lasers do not cope well with smoke, fog or rain.