People forget how close the Soviets were to invading Japan, the southern tip of the Kurile Islands is ~25 miles from Japan with major ports being ~30 miles from each other.
The Japanese pilots were soldiers of a constituted military service attacking military targets in time of war. The Japanese didnt blow up little kids or run them over with trucks.