At a guess I'd say it's a stand alone pir for previous light? Didn't you say the original light was just a light? If so this would be the pir that should've activated it.
Yes my previous garage light was just like a switch on light wired straight to the fuse box. Exact same light as my previous outside switch on kitchen light. Here’s a better pic
If this box is wired straight to my mains, can I disconnect it safely to do away with it? Thanks