Your rocks formed from heat and gas bubbles formed inside then cooled. Tiny cracks allowed sediment and clay to enter each time it rained or flooded. Are these found anywhere near a river or pond/lake? Water action can make what appear to be man-made shapes.