Banging is a slang term for having sex. It is a play on the sound people make when having sex on non-sturdy surfaces, such as wooden beds and creaking wooden tables. Sex on these surfaces is often loud, like constantly clashing planks. So, the noise has become synonymous to the act.