One is published by ASTM International, one is published by the American Society of Mechanical Engineers. Typically the ASME document is a slight revision of the ASTM document, for example to allow inclusion into the ASM Boiler and Pressure Vessel Code.