Besides old machinery, you find square headed bolts and nuts in heavy timber framing. Old fashioned set screws use square heads. In industry, they are frequently used as pusher bolts for adjustment. In the small sizes, they were once very commonly used on stove bolts. I pick up any I find.