SQL Availability Group restore database to standalone server
That's the error you get when you restore the master database from a server with AlwaysOn Availability Groups configured, or try to restore additional user databases onto a server that had the master database from an AG replica restored.

Don't restore the master database from an AG replica onto a different SQL Server as the master database.

If you absolutely have to restore master to get user objects out of it, restore it as a different database (like master_old) and then transfer the objects you need.