Neither of those companies fit well into Nintendo's philosophies and market strategies. And also both Sony and MS use their videogame brands to sell their own services and products, so it's more than just "being not profitable enough" there. I'm sure they make up for possible videogame losses through a lot of other ways (movies, music, blue-ray license, adds...).