In cockney rhyming slang, "bottle" means "arse" (bottle and glass). Originally, you would "lose your bottle" - i.e. be so scared as to lose control of your bowel function. This has been shortened down to just "bottle it".