You're in control of what's tracked and shown. In Settings → Privacy:
Save ride history — turn this off and your rides won't be saved to your history.
Show stats on profile — turn this off and your totals (distance, time, and more) stay hidden from people viewing your profile.