Causality-Driven Reinforcement Learning for Joint Communication and Sensing