Getting back to the knocking sound...
When the bike is in gear, the engine is running, and the clutch is engaged (lever released), the clutch and gearbox input shaft are rotating, along with all the gears, but none of them are under load, so everything is rattling about on its freeplay.
When you pull in the clutch, everything in the gearbox stops turning, so it all goes quiet. The clutch release bearing also pushes the end of the crankshaft, pushing it against the thrust bearings, which probably reduces engine noise a little too.
When you ride away in gear, some of the gearbox is under load so it no longer has any freeplay, and the engine and road noise drowns out the rest.
Most cars and bikes are slightly noisier in neutral when the clutch is released but the beemer gearbox is particularly exposed and audible.