Either it's in the console ROM, in which case it's not a problem, or it's in the cartridge ROM, in which case I'd imagine it's just a matter of replacing the raster data with something else.
It was used as a way to prevent anyone unauthorized making games. If you copy the logo, you have violated trademark and copyright law, and if you don't copy the logo, your game won't run.
Detail here: https://catskull.net/gameboy-boot-screen-logo.html
That's why all modern consoles use digital signatures.