Simpler than that
Correlation might be considered inevitable. If a place has serious racial tensions - for whatever reason - that will generate both more racist tweets and more racist crimes than a place where everyone lives in perfect harmony.
Doesn't mean it's the same people. Just the same underlying tensions.