Magic bars likely got their name because they magically stay together with sweetened condensed milk. The recipe was originally published by Eagle Brand Sweetened Condensed Milk on the back of their condensed milk cans in 1964. They are also called seven layer bars because they have seven different layers of flavor.