pdflayers is a tool for changing default visibility of PDF layers (OCGs, Optional Content Groups).
python3 -m pip install --user pdflayers
pdflayers <input file> <output file> --show <layer name(s)>
or
python3 -m pdflayers <input file> <output file> --show <layer name(s)>
pikepdf is doing most of the work.