BCF anomaly and higher-group structure in the low energy effective theories of mesons