Answer: It's called Post hoc
Explanation: It's also called coincidental correlation or false causality, it's a type of fallacy in which what happens is the following:
As a consequence of an event that occurs first, a second event is caused.
Which is not always true, that is why it is called "false causality"
For example:
1. My girlfriend studied dentistry
2. My girlfriend studied dentistry, that's why my girlfriend dedicated herself to being a lifeguard.
Good luck, bye