This is off-topic but I think I can help.
Some languages, like (European) French, put spaces before question marks[0] and exclamation marks[1] and people might be so used to doing it that they even do it when writing in a different language.
[0] https://en.wikipedia.org/wiki/Question_mark#Stylistic_varian...