Its because it's a parody. You are allowed to parody anything you want, and they can't sue you as long as you don't directly copy everything. (It also depends on the country too)
The only problem would be patents, but unless you are nitendo, you are probably not dumb enough to sue. Also...