Anyone know where these bolts come from?

It looks like a ground wire bolt & nut, maybe for headlight wiring harness. Those square nuts are mostly used in caged in applications, sometimes lower steering column plates & radiator supports for grounding wires or mounting horns & such. Also, the nuts are sometimes tack welded in place from the factory.