If an aftermarket wire was wired that way at a shop, I certainly would never take it back to them . Jeep has provided a safe secure way to insert the trailer wiring harness since at least the 1997 TJ. My TJ had a hitch installed on it when I bought it in 2014, and a trailer wire jury rigged almost like you said, where it was clipped onto the wiring harness in the back, but then it was snaked down into the void behind the left tail light (right past the nice socket and plug that Jeep had installed on all to connect the left tail light) then out and tucked into the end of the rear bumper.
I removed all that and purchased the wiring kit from Quadratec and hooked it into the wiring harness at the point designed for it right behind the left tail light, then out to the bracket to hold the 4 flat socket, and pressed the socket onto the bracket. It is handy right beside the reciever. Hook up the trailler, attach the chains, plug in the lights, test the lights and go. The factory installed harness on my JKU is just about the same, except the plug and socket behind the left tail light is different.
Here are the instructions on how to install the wiring on a JK/JKU: While they say 2007-2013, that's because when this kit came out, the 2013 was the current model. They kit and instructions are good for all JK/JKUs.