Where ALAC comes from
Apple created the codec in 2004 so iTunes and iPods could offer lossless audio without adopting FLAC, and hobbyists reverse-engineered it within months. Apple open-sourced the reference implementation under the Apache License in 2011, and Apple Music's 2021 lossless tier streams in ALAC.