Email folders and labels have much in common. Like folders, labels can be created, edited and deleted. Your account migration translated your former folder names into your current label names, which preserved your folder-subfolder hierarchy. Unlike with folders, multiple labels can be assigned to a single message. See Google's own documentation on Using Labels for detailed instructions.