E39 M5s have notable parasitic battery drain when parked for extended periods; owners are widely advised to use a battery tender or disconnect the battery for storage of more than a couple of days.
Battery drain and need for tender
BMW E39 M5 · electrical