Statistical origin of allometry