Treasure Bags are found by killing bosses in Expert Mode in Terraria. The appearance and contents depends on which boss rewarded you with it.