That just means github can display the code, and you can see the code, but that does not mean you can then profit from or redistribute (profit or no) the code without attribution.
Amazon has the rights to publish a book, and you have the right to receive a copy of the book, but neither of those gives you the right to re-publish the book under your own name.
Amazon has the rights to publish a book, and you have the right to receive a copy of the book, but neither of those gives you the right to re-publish the book under your own name.