Blender undesiredly merges objects into single object at export
I got it.

I unticked "Objects as OBJ Objects", and I unticked "Objects as OBJ Groups".
Also, I ticked "Write Materials" and "Write Material Groups". 

Here is a screenshot of the entire settings: