`--keep` resulting in smaller file than `--keep-ways` using exact same filter with `osmfilter`

Welcome, I did read the wiki.

Can you try:

osmfilter --keep= --keep-ways="boundary=administrative and admin_level=4" -o="AdminLevel4Ways.osm" ..\morocco-latest.o5m

So add --keep=?