The strength of the gravitational field depends on the mass, and on the distance. Since in black holes, the mass is concentrated in a very small region of space, it is possible to get very close, and still have all the mass on one side.
Please note that at a given distance, say 100 million kilometers, a black hole with a certain mass has exactly the same gravitational field as a star of the same mass, at the same distance.