What did they name constellations after?

most of the constellations were named after mythologies.