Canada has a three tier visa system:
- American citizens normally do not need visas to come to Canada.
- There are a select number of countries whose nationals are only required to get eTAs to come here.
- Everybody else need visitor visas, including Moroccans.
You should write an invitation letter for him. He’ll need to prove he is returning to Morocco before his status in Canada will expire.