Lateinit is not needed inside the function

we dont need lateinit while declaring a variable without initializing it inside the function but we need it outside

why didnt i go any replies???