You're thinking too narrow. Apple the record company considered itself to be operating in the broader domain of audio/sound/music/playback etc. Apple the computer company had started to enter that domain.
But then in the present day, there is Apple Music so now they are certainly competing (and have already settled with Apple records).
For example they bought Apple trademark from Apple records for undisclosed sum and now they're licensing it back to Apple Records.