It is considered dangerous play because it may result in tripping or other kicking which may cause injury.
Dangerous Play – an action by a player that the referee considers dangerous to that player or others. Examples are high kicking, playing while lying on the ground, or playing the ball while it is in the possession of the goalkeeper.