Tsallis and Kaniadakis statistics from the viewpoint of entropic gravity formalism