"We have a history there, and we have the right to enjoy and celebrate that music,” Knowles told the class.