Is it a "mere" repair when they crack open your device swap out the main board and replace the firmware? Imagine that their "search" turned up nothing? You'd still be left unable to get your device back intact or unaltered. Should the government be able to swap out hardware components and install whatever firmware they like on them without a court order? People have their own reasons for selecting the hardware that they do and for not installing certain firmware. Should the police be able to install firmware that isn't official?
"merely repairing" seems misleading given what this allows for.