The other activities that is being mentioned in the question is part of the game but kicking the ball intentionally outside the ground is not considered legal.
Attacking the opponent's goal, protecting your goal and stealing the ball form the opponents team are some of the major parts of the game.
These conditions are not illegal but kicking the ball of the ground is not a part of a healthy game.